The "buyPresent" function currently lacks functionality to update the balances of users who purchase presents for their friends. As a result, after executing the "buyPresent" function, the balances of the involved users remain unchanged, potentially leading to inaccuracies in token ownership and an incomplete transactional record.
Tokens are transferred for present purchases, but the balances of the involved parties—both the purchaser and the recipient—are not updated within the contract.
Inability to track and verify executed transactions accurately within the contract, potentially causing confusion or disputes regarding token ownership.
manual analysis
Implement the necessary logic within the "buyPresent" function to update the balances of both the purchaser and the recipient after the successful execution of the present purchase.
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.