TwentyOne

First Flight #29
Beginner FriendlyGameFiFoundrySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Wrong event message in require statement

Summary

In hitfunction is requirestatement, aim of this statemnt is checking value of Player cards.

But there is wrong error description "User is bust".

Vulnerability Details

In require statement is wrong description "User is bust". There should be Player

// @audit low "User is bust" should be Player
require(handBefore <= 21, "User is bust");

Impact

Wrong message from blockchain to out-chain world.

Tools Used

manual review

Recommendations

Please change from user to Player.

Updates

Lead Judging Commences

inallhonesty Lead Judge 11 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.