Rock Paper Scissors

First Flight #38
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Unspecific and old Solidity Pragma in `RockPaperScissors` and `WinningToken` contracts

Summary

Consider using a specific version of Solidity in your contracts instead of a wide version. For example, instead of pragma solidity ^0.8.13;, use pragma solidity 0.8.20; as in the foundry.toml file for solc = "0.8.20".

Vulnerability Details

Impact

Old solc compiler version could lead to security vulnerabilities and bugs in the contract. Using a specific and recent version of Solidity can help ensure that the contract behaves as expected and is not affected by changes in future versions of the compiler.

Tools Used

Aderyn, Slither, Manual review.

Recommendations

Consider following the foundry.toml file for the Solidity version. This will help ensure that the contract is compiled with the same version of Solidity that was used during development and testing.

Updates

Appeal created

m3dython Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Floating Pragma

m3dython Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Floating Pragma

Support

FAQs

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