evm-opcodes icon indicating copy to clipboard operation
evm-opcodes copied to clipboard

Is the create and create2 gas calculation method wrong?

Open Joe-qa opened this issue 2 years ago • 0 comments

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)

Joe-qa avatar Nov 21 '23 11:11 Joe-qa