The burn function, called within the buyPresent function, is only accessible to santa.
The documentation specifies that the buyPresent function allows users with tokens to purchase presents for others. However, due to the burn function called within buyPresent, users other than santa encounter an authentication check that only permits santa to proceed.
Users, regardless of their token holdings, are unable to purchase presents for others.
Manual Reading
Instead of removing the control structure in the burn function, consider creating a separate buy function without an additional santa check. This modification would maintain the intended functionality of allowing users to buy presents for others without affecting the burn function's authentication check.
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.