Hawk High

First Flight #39
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

[I-5] Boolean equality is not required

Tools Used

  • Aderyn

  • Slither

Recommendations

If x is a boolean, use if(x) and if(!x) instead of if(x == true) or if(x == false).

Found instances:

Found in src/LevelOne.sol Line: 109

if (inSession == true) {

if (inSession == false) {
Updates

Lead Judging Commences

yeahchibyke Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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