Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the create and create2 gas calculation method wrong? #29

Open
Joe-qa opened this issue Nov 21, 2023 · 0 comments
Open

Is the create and create2 gas calculation method wrong? #29

Joe-qa opened this issue Nov 21, 2023 · 0 comments

Comments

@Joe-qa
Copy link

Joe-qa commented Nov 21, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant