Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

Incorrect pragma solidity version

Summary

In version 0.8.4 custom errors are introduced so both the error and revert functionality are not availabe in version 0.8.3. When building this likely will not be an issue if the solc compiler version is set to something higher than 0.8.3 as the pragma line specifies 0.8.3 or higher, otherwise you will see an error.

Vulnerability Details

You can find more information about the custom errors functionalilty introduction to solidity in the 0.8.4 release notes:

Impact

Low

Tools Used

forge build --use 0.8.3

Recommendations

Update the pragma line to use ^0.8.4

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Project that use pragma=0.8.3 won't be able to use the library due to custom errors not being supported in that Solidity version.

Support

FAQs

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