-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
panic with 'spec not supported' when specifying --hardfork muir_glacier
#2260
Comments
Also an issue for Forge (same reasons) |
since this is a revm limitation, should we downgrade this accordingly when selecting the hardfork @onbjerg? |
cc @rakita for visibility / any thoughts |
hm, i went through all EIP's from hardforks and added them to EVM and added comment when it got enabled, what i didn't do is test them and run eth/tests with specs enabled. That is why only the newest ones are "supported". Not sure how much effort is needed to enable them all, but will check (crossing fingers it all passes on the first try :D) |
sounds good - thanks for letting us know! |
Ping @rakita was this fixed recently? |
or @banteg to check the repro again |
didnt look at this |
@rakita what is the status on this? Some way I can help? :) |
@onbjerg bluealloy/revm#155 (comment) Will be away from laptop for next few days, but major work was done in branch to suport all forks. |
@onbjerg can you integrate bluealloy/revm#191 ? |
thanks! will migrate breaking changes |
this has landed with #2967 |
Component
Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (ce52d85 2022-07-10T00:11:05.440274Z)
What command(s) is the bug in?
anvil
Operating System
macOS (Apple Silicon)
Describe the bug
steps to reproduce
anvil --port 7545 --fork-url http://127.0.0.1:8545 --fork-block-number 12175070 --hardfork muirglacier
an ape script to reproduce can be found here
https://gist.github.com/banteg/13147218f9424988a8814f7c3f0ea5d1
it appears we hit this line
https://github.com/bluealloy/revm/blob/51f3f8feb5625ca39a16492d569f6985e69121a7/crates/revm/src/evm.rs#L162
the fix appears to be to fall back to the previous evm version supported by the underlying vm when a user specifies it, i.e.
muir_glacier -> istanbul
,constantinople, petersburg -> byzantium
(orbyzantine
as it's called inrevm
).or this can be fixed by adding a more complete spec to revm.
The text was updated successfully, but these errors were encountered: