TwentyOne

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

Misleading function name `call` may cause player confusion and financial loss in `TwentyOne` contract

Summary

The TwentyOne::callfunction has a misleading name causing confusion for players and unintended gameplay since calling the function would make the player stand and call is not a black jack term.

function call() public {
// code as is

Vulnerability Details

A player could misinterpret the function as calling for a new card instead of standing leading to uninteded gameplay. This could lead to erosion of trust and bad user experience.

Tools Used

Manual code review

Recommendations

Rename the function to standso it is clear what the function does.

function stand() public {
// code as is
Updates

Lead Judging Commences

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

Give us feedback!