Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

buyPresent function gives NFT to msg.sender not presentReceiver

Summary

buyPresent function mints NFT to msg.sender not presentReceiver

Vulnerability Details

As in description, a present should be for presentReceiver. But minted NFT is send to msg.sender, not presentReceiver.

Impact

buyPresent function mints NFT to msg.sender not presentReceiver

Tools Used

Foundry

Recommendations

instead of calling _mintAndIncrement function, creating another private function with parameter addressReceiver to mint NFT to.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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