The contract can only mint the NFT once, and was unable to mint other NFT due to bad implementation of MINT
function in huff.
The following fuzzing test will fail in huff version:
The huff version can not mint more than one NFT due to logic flaw in MINT
function.
The MINT
function wants to validate the to
variable to ensure it is not zero address, but the order of stack value is incorrect, and it turns out the validation only allows token id to be zero.
It first duplicates the top of stack value, it will be token id. It is the token id that is validated not the to
variable.
Only the first NFT can be minted, and other user can not execute the mint operation
Update the validation of the following
dup1 iszero invalid_recipient jumpi // [to, tokenId]
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.