The collectPresent() function mints an NFT for users but does not emit any event indicating that the NFT was successfully minted or collected. Emitting an event would allow off-chain tools, analytics, and front-end applications to easily track gift collection and improve transparency.
Low — does not affect functionality, but reduces transparency and makes off-chain monitoring harder.
Emit an event, e.g., PresentCollected(address user, uint256 tokenId), after successfully minting the NFT in collectPresent().
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.