Description: _mint
is a function that doesn't take into account whether the receiver address can receive the specified tokens. So a contract that calls the EggHuntGame::searchForEgg
function and finds an egg, tries to mint it in EggstravaganzaNFT::mintEgg
with _mint
but doesn't have the ERC721Receiver
contract implemented, won't be able to receive the NFT and the NFT will be lost.
Impact: Minted NFT tokens will be lost when the EggstravaganzaNFT::mintEgg
tries to mint them to a contract that can't receive the tokens.
Recommended Mitigation: It's recommended to use the _safeMint
function instead of _mint
when minting new tokens to ensure the NFT token won't be lost if the receiver can't actually receive NFTs.
Protocol doesn't check if recipient contracts can handle ERC721 tokens
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.