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

solidity 0.8.3 do not support custom errors

Summary

solidity 0.8.3 do not support custom errors, code won't compile due to that.

Vulnerability Details

Contract uses floating pragma ^0.8.3 which allows using it to compiled with mentioned or greater version. When compiled with 0.8.3, it throws error and won't compile. it's because, custom errors were introduced solidity version 0.8.4 onwards.

Impact

code won't compile and when 0.8.3 used

Tools Used

Manual Review

Recommendations

user ^0.8.4 or fix the pragma to greator than equls to 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.