-
Notifications
You must be signed in to change notification settings - Fork 741
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
Code size error when actual failure reason is OOG #2664
Comments
I assume you want us to branch on:
? |
I didn't mean to open this yet. I was using the github.dev editor and it opened it for me, I thought I'd have a chance to add more context first. Context coming right up! |
This issue came up recently when web3 was updating their tests to shanghai. The error returned by the EVM is that the code size is too great, but the gas used was the problem and their contract deployment actually doesn't have enough gas under shanghai. I suspect they'll be many more users upgrading to shanghai that run into this erroneous error message over the next few months. So it'd be helpful to update the error messaging here soon. (sorry for that initial contextless issue!) |
This is not related to Shanghai. This does the "deployed code size" check, not the "initcode size check" (EIP 3860). See EIP https://eips.ethereum.org/EIPS/eip-170 I agree we should change though. |
I think it is related to shanghai. Code that use to deploy successfully at a given gas limit no longer does because init code uses more gas now. |
I this this is a duplicate of this issue #2466 ? |
It is. Thanks @jeffsmale90! I leave it to @jochem-brouwer to close this one. |
Yup, just assigned #2466 to me and will work on this soon. |
ethereumjs-monorepo/packages/evm/src/evm.ts
Line 584 in 49c2d93
The text was updated successfully, but these errors were encountered: