In the protocol the counter of the tokenId
is resolved by the custom solution.
This solution based on:
Please note that in the trickOrTreat
function, the mintTreat
function is used in several places. However, in other parts of the function, such as within the else
statement, the code that belongs to the mintTreat
function is written out instead of calling the function itself.
The inconsistency in using the mintTreat
function in some places while writing out the code in others can introduce bugs and make the contract harder to maintain. It’s crucial to refactor the code to consistently use the mintTreat
function for clarity and reliability.
This breaks the fundamental functionality of the protocol.
manual review
Instead of using a custom solution for the tokenId counter, it is better to use OpenZeppelin's Counter.
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.