MyCut

First Flight #23
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Floating Pragma in `ContestManager` and `Pot` Contracts

Summary

The ContestManager and Pot contracts use a floating pragma (^0.8.20), which could lead to issues if future Solidity compiler versions introduce changes or bugs.

Vulnerability Details

Both contracts specify a floating version for the Solidity compiler (^0.8.20). While this allows flexibility in using newer compiler versions, it also introduces the risk of unforeseen changes or bugs in future versions, which could affect the contracts' behavior.

Impact

Using a floating pragma can result in unexpected behavior due to compiler updates, potentially introducing bugs or inconsistencies in contract functionality.

Tools Used

Manual code review.

Recommendations

Lock the pragma to a specific compiler version, such as pragma solidity 0.8.20, to ensure consistent behavior across deployments.

Updates

Lead Judging Commences

equious Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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