sherlock-audit / 2024-08-flayer-judging

2 stars 0 forks source link

Happy Green Chimpanzee - PUSH0 is not supported by all chains #802

Closed sherlock-admin4 closed 1 month ago

sherlock-admin4 commented 1 month ago

Happy Green Chimpanzee

Low/Info

PUSH0 is not supported by all chains

Vulnerability Detail

Solc compiler version 0.8.20 switches the default target EVM version to Shanghai, which means that the generated bytecode will include PUSH0 opcodes. Be sure to select the appropriate EVM version in case you intend to deploy on a chain other than mainnet like L2 chains that may not support PUSH0, otherwise deployment of your contracts will fail.

Code Snippet

    pragma solidity ^0.8.0;

Tool used

Manual Review, VS Code