11

In Remix, clicking on "details" for a contract reveals the "bytecode" and "runtime bytecode". What is the difference?

will_durant
  • 1,154
  • 1
  • 9
  • 21
  • 1
    Related: https://ethereum.stackexchange.com/questions/7735/bytecode-on-block-chain-different-from-the-one-used-when-deploying – eth Dec 02 '17 at 00:21
  • Note that Truffle and Hardhat renamed the "runtime bytecode" to "deployed bytecode". – Paul Razvan Berg Nov 23 '20 at 14:26

1 Answers1

14

Runtime bytecode is what's actually stored at the contract address. It doesn't include the constructor function or initialization code (which the bytecode does).

https://www.reddit.com/r/ethereum/comments/3pq08g/some_quick_things_about_verifying_contracts/cw8qn0d/

will_durant
  • 1,154
  • 1
  • 9
  • 21