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

enterRaffle can be called with an empty array

Summary

enterRaffle can be called with an empty array

Vulnerability Details

Since the function only requires us to pay as much as fee * newPlayers.length, we can call this function with an empty array.

Impact

Low. It causes new events to be emitted with an empty array, thus cluttering the logs with trash.

Tools Used

n/a

Recommendations

Add another require(newPlayers.length > 0) at the top of the function to prevent the function from being called with no new players;

Updates

Lead Judging Commences

Hamiltonite Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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

Give us feedback!