According to OpenZeppelin, it is required that tokenId
must not exist when using_mint()
. However, this is not checked in AccountNFT:mint()
.
AccountNFT:mint()
intentionally uses _mint()
instead of _safeMint()
.
However, there is no check to verify that the tokenId
to be minted to the to
address does not already exist as required by OpenZeppelin:
Duplicate Tokens
Without checking if a tokenId already exists, there's a risk of minting duplicate tokens. Each ERC721 token
is supposed to be unique, identified by a unique tokenId
. Minting a token with a tokenId
that already exists breaks this uniqueness principle
Manual Review
Checks if a tokenId
exists before minting it using _mint()
:
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.