GivingThanks

First Flight #28
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

`_mint` function is not safe when sending NFTs to contract instead of EOA if the contract doesn't properly handle it, making the NFT stuck in the contract forever

Summary

If the receiver of NFT is a contract and it doesn't implement IERC721Receiver interface, the NFT will be stuck in the contract forever. Use _safeMint instead of _mint to prevent this.

Recommendations

Use _safeMint instead of _mint in the donate function.

Updates

Lead Judging Commences

n0kto Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.