In the 'HorseStore.huff::MINT_HORSE' function, TOTAL_SUPPLY is not being correctly gathered. This causes the function to not work after being called the first time.
In the 'HorseStore.huff::MINT_HORSE' function the TOTAL_SUPPLY constant is being used instead of calling the GET_TOTAL_SUPPLY() function. Without calling this function, TOTAL_SUPPLY will stay at zero.
This will result in the function trying to mint tokenId 0 everytime MINT_HORSE is called.
The GET_TOTAL_SUPPLY() function needs to be called when minting an NFT so that TOTAL_SUPPLY increments after each token its minted.
The below test will fail when trying to mint the second NFT
--Foundry
It is recommended to change the MINT_HORSE() function so that it calls the GET_TOTAL_SUPPLY() function when minting a new NFT
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.