Trick or Treat

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

Solidity pragma should be specific, not wide

summary

Consider using a specific version of Solidity in your contracts instead of a wide version. For example, instead of pragma solidity ^0.8.24;, use pragma solidity 0.8.24;

impact

Contracts should be deployed with the same compiler version and flags
used during development and testing. Locking the pragma helps to ensure
that contracts do not accidentally get deployed using another pragma.
For example, an outdated pragma version might introduce bugs that affect
the contract system negatively or recently released pragma versions may
have unknown security vulnerabilities.

tools used

aderyn & slither

recommedations

Consider locking the pragma in all the contracts to the 0.8.24 version.
It is not recommended to use a floating pragma in production.

Updates

Appeal created

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