The tokenCounter is initialized to 0 in the constructor, which leads to the first minted token having a token ID of 0. Typically, token IDs should start from 1 for clarity and convention.
tokenCounter starts at 0 instead of 1
Impact: The first call to mint a token will use tokenCounter value of 0, which is usually avoided in many ERC721 implementations as it could cause confusion or conflicts in downstream applications.
Update the constructor to set tokenCounter to 1 instead of 0.
Likelyhood: High, the parameter is not well used and won't be set. Impact: Low, can be changed with the setter and no one will be able to donate to malicious charity.
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.