Pieces Protocol

First Flight #32
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Beware of Default Compiler Settings in Solidity 0.8.20 and the Risks of Floating Pragma

Summary

Contracts TokenDivider.sol and ERC20ToGenerateNftFraccion.sol use a floating pragma (^0.8.18).

Impact

In Solidity 0.8.20, the compiler defaults to the Shanghai EVM version, introducing features that may not be supported on all networks. If you plan to deploy contracts on chains other than the mainnet, such as L2 networks, ensure you specify a compatible EVM version to avoid deployment failures caused by unsupported features.

Recommendations

  • Use a specific version of Solidity to avoid compatibility issues.

  • Ensure deployment to a fully compatible chain by verifying the EVM version supported by your target network.

Updates

Lead Judging Commences

fishy Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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