The MINT_HORSE Huff macro is passing TOTAL_SUPPLY as the value for tokenId (which is zero), instead of the stored value of totalSupply, so the tokenId to mint is always zero.
In line 75 of HorseStore.huff, the value of the TOTAL_SUPPLY pointer is being passed as total supply
Only one horse can be minted, and subsequent mints will revert.
Foundry, Manual review
This is a test that mints two horses, and expects a revert in the second mint.
Run Huff test
The test will pass, confirming that the second mint reverts.
Correctly load value of totalSupply
Load the value from the storage location
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.