The treat count increases correctly when adding new treats only if we account for the undocumented initial "Candy" treat.
Location: src/TrickOrTreat.sol:addTreat()
and src/TrickOrTreat.sol:getTreats()
The contract correctly manages treat counts, but the presence of an initial treat could be surprising if not well-documented.
Ensure the presence of the initial "Candy" treat is well-documented in the contract and any associated documentation. Consider adding a function to retrieve the total number of treats for easier verification.
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.