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