In Remix, clicking on "details" for a contract reveals the "bytecode" and "runtime bytecode". What is the difference?
Asked
Active
Viewed 2,755 times
11
-
1Related: 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 Answers
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).
will_durant
- 1,154
- 1
- 9
- 21