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

enterRaffle order of statements

Summary

enterRaffle function not following Checks,Effects,Interaction pattern

Vulnerability Details

Check for duplicates should occur before pushing new players into the array. it could loop through the newPlayers array
and check for duplicates first and it could revert before adding new players.
Checks -> Effects -> Interactions should be followed

Impact

players being added to the array and then having to roll back the changes if they are duplicate

Tools Used

VSCode

Recommendations

check for duplicates before adding to array, this is more efficient and follows the Checks -> Effects -> Interactions pattern

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!