Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Confusing error message in `enter_raffle`

Summary

The message in the enter_raffle function doesn't display real reason why call was reverted to user.

Vulnerability Details

In the enter_raffle function on L115 if msg.value is not equal to the ENTRANCE_FEE transaction will be reverted with the next message: "SnekRaffle: Send more to enter raffle". However, the real reason is that msg.value is not equal to the ENTRANCE_FEE.

Impact

Low

Tools Used

VS Code.

Recommendations

Consider changing the error message to a more meaningful message.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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