mintEgg
function lets the game contract mint new NFTs. But it doesn’t check if the tokenId
has already been used before minting. This can cause the transaction to fail in a confusing way if someone tries to mint a token that already exists.The _mint()
function will automatically fail if the token ID already exists — but the contract doesn't check this before calling _mint()
. That means:
The error message won’t clearly tell what went wrong.
The whole transaction fails, which can be annoying for users and other smart contracts calling this.
Users or frontend apps won’t know why it failed.
This makes the minting process less reliable and harder to debug.
_mint()
and _exists()
functions)_mint()
to check if the token already existsThe 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.