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

out of gas

Summary

Vulnerability Details

In the enterRaffle function, users can add player addresses to the storage array called "players." However, when the array reaches a certain length, the function may become unavailable due to running out of gas. Additionally, the function checks for duplicate addresses using a nested loop, which consumes a significant amount of gas and increases the likelihood of the function failing.

Impact

high

Tools Used

manual review

Recommendations

Use the upper boundary of the players length to limit the gas cost.

Updates

Lead Judging Commences

Hamiltonite Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Gas optimizations

Support

FAQs

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