Out of gas
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.
Potentially leading to an 'Out of Gas' error or reaching the 'Block Gas Limit' in the worst-case scenario.
Refactor the code
using a more efficient method
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.