Trick or Treat

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

Solidity pragma should be specific, not wide

Summary

Using an exact Solidity version (e.g., pragma solidity 0.8.24;) instead of a range (e.g., pragma solidity ^0.8.0;) can help avoid unexpected behavior due to compiler changes in future versions.

Impact

While this change has no immediate impact, specifying an exact version ensures that the contract always compiles with the intended Solidity version, reducing the risk of incompatibility or unexpected issues in future updates.

Tools Used

Aderyn

Recommendation

Update the Solidity pragma to specify an exact version:

- pragma solidity ^0.8.24;
+ pragma solidity 0.8.24;
Updates

Appeal created

bube Lead Judge 8 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.