Calling the 'SantasList.sol::buyPresents' function only costs 1 SantaToken instead of 2. As per the documentation, it should cost 2 SantaToken to mint an NFT.
Calling the 'SantasList.sol::buyPresents' function calls the 'SantaToken.sol::burn' function but it only burns 1e18 worth of SantaToken to mint a new NFT. This burn function should burn 2e18 worth of SantaToken as per the documentation.
The below test passes as true showing that a user can mint an NFT while only spending 1 SantaToken.
--Foundry
It is recommended to increase the burn amount in the 'SantaToken.sol::burn' function to 2e18
This line indicates that the intended cost of presents for naughty people should be 2e18: https://github.com/Cyfrin/2023-11-Santas-List/blob/6627a6387adab89ae2ba2e82b38296723261c08a/src/SantasList.sol#L87 PURCHASE_PRESENT_COST should be implemented to enforce the cost of presents.
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.