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

Bool array have business error/bug

Summary In Array bool have bussines logic error

Vulnerability Details
in an Array, bool can be either true or false. The bug is that the Result variable should not be, it should be a bool, because an error occurs

struct PlayerPredictions {
Result[NUM_MATCHES] predictions;
bool[NUM_MATCHES] isPaid;
uint8 predictionsCount;
}

Impact
in the structure, since the logic is violated, the number of masts payment is false , damage to users

Tools Used VS CODE

Recommendations
Add true or false

Updates

Lead Judging Commences

NightHawK Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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