Hawk High

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

LevelOne.reviewCount is never initialized

Summary

LevelOne.reviewCount (src/LevelOne.sol#48) is never initialized. It is used in:
- LevelOne.giveReview(address,bool) (src/LevelOne.sol#288-309)

Vulnerability Details

LevelOne.reviewCount is declared in line 48 but the initial value is never given. It is adviseable to give the initial value even though solidity automatically assigns it the value of 0.

Impact

Low impact

Tools Used

Slither

Recommendations

Initialize LevelOne.reviewCount before using it in LevelOne.giveReview

Updates

Lead Judging Commences

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

Support

FAQs

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