[General] Error : Invalid EVM version requested using foundry-zksync and in-memory era_test_node #641
-
EnvironmentTestnet Provide a brief description of the functionality you're trying to implement and the issue you are running into.Hi all, I'm trying to deploy to my local ZKsync node theSimpleStorage.sol contract, but to no avail.
I used all the mandatory flags in the documentation and pasted in one of the private keys that the documentation provides, I entered the correct rpc-url, my docker is up and i'm using the right forge version with foundry-zksync, but it returns this output:
It appears to be using all the ZkSocl compilers as the documentation indicates, but it's as if the If anyone has already encountered this error, please let me know if it has been resolved somehow. Repo Link (Optional)No response Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It seems like you are encountering an issue with the Here are a few steps you can try to resolve this issue:
If these steps do not resolve the issue, it might be helpful to reach out on the official forums or support channels for more specific guidance tailored to your setup. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
@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 so either try bumping the version in the solidity contracts to
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 |
Beta Was this translation helpful? Give feedback.
@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: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