Trick or Treat

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

Solidity pragma should be specific, not wide

Description: It is recommended to use a specific version of Solidity in the SpookySwap contract rather than a wide version range. For example, replace pragma solidity ^0.8.24; with pragma solidity 0.8.24;.

Impact:

Using a specific Solidity pragma version (e.g., pragma solidity 0.8.24;) rather than a range (e.g., pragma solidity ^0.8.0 <0.9.0;) is beneficial for security, compatibility, and predictability of contract behavior. Specifying the exact compiler version minimizes the risk of unintended behavior due to differences in compiler versions and ensures that the contract code behaves consistently across deployments.

1 Found Instances
  • Found in src/TrickOrTreat.sol

    pragma solidity ^0.8.24;

Recommended Mitigation: Use a specific Solidity pragma version (e.g., pragma solidity 0.8.24;)

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.