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

out of gas

Summary

Out of gas

Vulnerability Details

enterRaffle() traverse all registered participants and search for duplicate addresses. Whenever a new participant enter the raffle, it will be compared with each existing participant in the array to ensure there are no duplicates. As the number of participants increases, the gas consumption can become more expensive each time a new collateral address is added to the array.

Impact

Potentially leading to an 'Out of Gas' error or reaching the 'Block Gas Limit' in the worst-case scenario.

Tools Used

Recommendations

Refactor the code
using a more efficient method

Updates

Lead Judging Commences

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

Support

FAQs

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

Give us feedback!