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

Santalist.buyPresent's comment does not match the code.

Summary

Santalist.buyPresent comment does not match the code.

Vulnerability Details

The comment says that the caller can buy a present for someone else (presentReceiver). But the code allows the user to buy present for himself
by burning the presentReceiver token.
Also, according to the comment, the function can only be called by someone who is naughty. But there is no check for that.

Impact

Mislead users.

Tools Used

Manual review.

Recommendations

Rewrite the comment to match the code.

Updates

Lead Judging Commences

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

Support

FAQs

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