Skip to content

[General] Error : Invalid EVM version requested using foundry-zksync and in-memory era_test_node #641

Discussion options

You must be logged in to vote

@Alessandro-Cavaliere the error comes from solidity due to the evm version being passed as input. Foundry's default evm version is cancun but the solc version it is trying to compile with is 0.8.19 which is not compatible with cancun

so either try bumping the version in the solidity contracts to 0.8.24 or specify the evm version on foundry.toml like this:

[profile.default]
...
evm_version = "paris"

In the near future we will santize the input so that the highest compatible evm version for each solc is used but for now that workaround is needed

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bxpana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
general General question devtools Questions related to zkSync Tooling
2 participants