Description: In smart contract audits, especially for ERC721 (NFT) tokens, using _safeMint
instead of _mint
is a recommended practice to ensure the recipient is a contract that implements the onERC721Received
hook, enhancing security and preventing potential issues.
Impact:
Security: _safeMint() ensures that the recipient contract can properly handle the newly minted token, preventing potential issues or vulnerabilities.
Contract Compatibility: It verifies that the recipient contract is compatible with ERC721 standards, ensuring proper token transfer and management.
Recommended Mitigation:
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.