The _MINT() does not update TOTAL_SUPPLY storage, leading to a revert if mintHorse() is called more than once, as subsequent calls with the same token_id 0 result in duplicate minting
Add this test to Base_Test.t.sol and run forge test --mt testMultipleMint -vvvv to validate the issue
A revert occurs when the mintHorse() function is called for the second time, output:
The mintHorse() function is not functioning properly, and users can only successfully call it once.
manual inspection
Update TOTAL_SUPPLY in the _MINT(), Add the following line of code in the _MINT() in HorseStore.huf
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.