During the code review, it was found that, in the Huff version, it is only possible to mint one NFT. After minting the first NFT, all calls to mintHorse()
will revert with the error ALREADY_MINTED
.
I didn't have time to properly check the exact reason behind this flaw. However, it looks like there's an error with how TOTAL_SUPPLY
.
The whole logic of the NFT collection is useless if only one horse NFT can be minted.
Foundry.
Add the following test function in the Base_Test.t.sol
file and run it by executing forge test --mt testMintTwice -vvvv
.
See that the execution of the Huff test reverts with the error ALREADY_MINTED
, while the Solidity version works fine.
It is recommended to review the minting logic of the Huff version and fix the mentioned limitation.
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.