resolveTrick
function does not reset the treatNames array.
resolveTrick
function does not reset the treatNames array. This means, that the array will get bigger and bigger over time, which means calling getTreats
function will cost more and more gas. Resulting in a potential Denial of Service.
Users will not be able to call the getTreats
function.
Manual review
In the resolveTrick
function add a line that will reset the treatNames array.
Or limit the array.
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.