The donate function in the GivingThanks contract could lose an ERC721 token if the recipient doesn't follow the ERC721 standard.
In GivingThanks::donate calls _mint function, which could lead to un-received ERC721 token: The donate function mints an ERC721 token to the donor using _mint. However, if the recipient's wallet does not implement the ERC721 wallet interface correctly, the token may be lost.
This issue could result in:
Donors losing their ERC721 tokens representing their donations.
Decreased user trust in the platform due to potential loss of assets.
Negative impact on the platform's reputation.
Manual review
GivingThanks::donate calls _mint function, which could lead to un-received ERC721 token: To mitigate this risk, replace _mint with _safeMint in the donate function. This ensures that the recipient can correctly receive the ERC721 token, preventing potential loss.
Diff:
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.