New answers tagged

0 votes

Why the method _castToPure in hardhat/console.sol can convert a view method to a pure one?

This function is called to avoid having solc throwing when trying to cast a view function into a pure one (doing it in assembly bypass the compiler check) Without the assembly block (ie just assigning ...
DrGorilla.eth's user avatar
0 votes
Accepted

Runtime bytecode not contained in creation bytecode

To deploy a contract the EVM executes the constructor's bytecode. Usually the constructor initializes the contract storage and returns the contract's runtime bytecode, but that isn't required. Recent ...
Ismael's user avatar
  • 30.6k

Top 50 recent answers are included