celo-org / celo-blockchain

Official repository for the golang Celo Blockchain
https://celo.org
GNU Lesser General Public License v3.0
560 stars 198 forks source link

Shanghai hardfork not supported, invalid opcodes in solidity 0.8.20+ generated code #2209

Closed reachjason closed 7 months ago

reachjason commented 10 months ago

Expected Behavior

The smart contract deploys successfully

Actual Behavior

i get the following error : "invalid opcode: opcode 0x5f not defined"

Steps to reproduce the behavior

Try deploying a contract using remix and latest solidity versions.

reachjason commented 10 months ago

More like a feature request. Reference:

https://ethereum.stackexchange.com/questions/150281/invalid-opcode-opcode-0x5f-not-defined

palango commented 10 months ago

Hi @reachjason, thanks for reporting this. This is due to EIP-3855 not being enabled on Celo yet.

For now please resort to setting the EVM version explicitly: https://docs.soliditylang.org/en/v0.8.20/using-the-compiler.html#setting-the-evm-version-to-target