-
Notifications
You must be signed in to change notification settings - Fork 20.7k
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
simulated.NewBackend
does not support Shanghai (invalid opcode: PUSH0
)
#31203
Comments
What genesis block are you using for the network? |
I use the default one, i.e. this one. |
Ah you should use the new simulated backend v2: https://github.com/ethereum/go-ethereum/blob/master/ethclient/simulated/backend.go should be a drop-in replacement for the old sim backend |
If I understand correctly, I am already using it by having |
Do you maybe have a repro code/example? |
@s1na , hi!
|
System information
Geth version:
v1.14.13
OS & Version: MacOS 14.1.2 (23B92)
Expected behaviour
A contract compiled with solc >0.8.19 is deployed using the
simulated.NewBackend(...)
.Actual behaviour
An error
invalid opcode: PUSH0
is received.Steps to reproduce the behaviour
Also, it was confirmed that if the contract is compiled with solc v0.8.19, it IS DEPLOYED successfully.
This may be related to #28144
The text was updated successfully, but these errors were encountered: