Can't mint more than one token in Huff Contract version
When calling HorseStore.mintHorse
, the contract uses the totalSupply()
as the id of the NFT to be minted. Huff ERC721 version has a bug where totalSupply
is not incremented. So, after minting the first horse, the NFT is minted with id 0, but when trying to mint a new horse, total supply is still 0, and function reverts as it tries to mint token 0 again.
HIGH. Core functionality broken.
Manual review, Foundry.
Increase total supply after each mint, so new tokens can be minted.
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.