evm-opcodes
evm-opcodes copied to clipboard
Is the create and create2 gas calculation method wrong?
Is the create and create2 gas calculation method wrong? I think create and create2 gas should include initcode_cost. For the CREATE and CREATE2 instructions charge an extra gas cost equaling to initcode_cost(initcode). This cost is deducted before the calculation of the resulting contract address and the execution of initcode.(https://eips.ethereum.org/EIPS/eip-3860)