In GivingThanks.sol#donate(address)
function _setTokenURI(tokenCounter, uri)
is called after _mint(msg.sender, tokenCounter)
causing nft to be minted with empty tokenURI
_setTokenURI(tokenCounter, uri)
set the uri to corresponding tokenCounter but issue in this function is that it is called after _mint(msg.sender, tokenCounter)
mint function is called before a correct uri is set to tokenCounter making the nft to be minted with wrong uri
Aftee _setTokenURI(tokenCounter, uri)
is called tokenCounter
is incremented and after that if other donor calls donate(address)
the tokenCounter
will not have uri set causing the nft to be minted with empty uri
Manual Review
Change the order of _mint(msg.sender, tokenCounter)
and _setTokenURI(tokenCounter, uri)
as follows
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.