Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Valid

Unsupported Opcode PUSH0 in solidity 0.8.20 for deployment on Arbitrum Chain

Summary

Deployment on arbitrum will fail due to incompatibility with PUSH0 opcode

Vulnerability Details

Currently 0.8.20 is the target compiler version with default evm sanghai for smart contract compilation / deployment, which will work fine on eth. But on Arbitrum it will fail. As with 0.8.20 PUSH0 OPCODE is introduced, which is not yet supported on most of the evm chains except optimism.
Using compiler version greater than 0.8.19 will lead to deployment failure.

Impact

Deployment will fail, if it's been deployed contract may not work as intended and likely to malfunction.

Tools Used

Manual Review

Recommendations

Using compiler 0.8.19 will fix the issue or if you want to use same compiler version then change the target evm to other than sanghai, eg. london.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

PUSH0 not available on Arb

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.