Description: The getTreats
function returns the list of the treats. The getTreats
function uses the for
loop to iterate over the treats. If the array of treats is too big, the getTreats
function may run out of gas.
Line of code: TrickOrTreat.sol#L153
The getTreats
function may run out of gas.
Manual code analysis
Foundry for testing
Consider using the pagination to return the list of the treats.
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.