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

Solidity 8.20 version deployment may fail in chains like Arbitrum

Summary

Vulnerability Details

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.

Impact

Deployment failure leads loss of gas

Tools Used

manuel review

Recommendations

choose correct pragma for specific chains deployments

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.