[Application Development] Target EVM version for Solidity contracts #935
Unanswered
guidanoli
asked this question in
Application Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Did you check the documentation?
Documentation Feedback (Optional)
The documentation doesn't clearly specify which EVM version to target when compiling Solidity smart contracts to EVM bytecode. The closest to an accurate answer is analyze the EIPs included in each network upgrade, and see if all the EIPs in an Ethereum execution-layer hardfork are contemplated.
What type of issue are you experiencing?
Issue Description
I would like to know which official resource from the OP Stack documentation states which EVM version I should target when compiling Solidity smart contracts meant to be deloyed to OP Stack networks (such as OP Mainnet, OP Sepolia, Base Mainnet, Base Sepolia, etc). This is crucial information. For example, compiling contracts with Solidity 0.8.35 targets the Osaka EVM version, which features the CLZ opcode. However, executing such opcode on OP Mainnet today would fail, because it is an invalid opcode there.
Steps to Reproduce
Consult the official documentation.
Are you using a specific library or SDK?
Are you using the latest version of the library/SDK?
Environment Details
No response
Troubleshooting Attempts
No response
What type of support do you need?
Additional Information
No response
Feedback
No response
Beta Was this translation helpful? Give feedback.
All reactions