Normal behaviour: The marketplace should only allow owners of NFTs to list them.
Issue: If the NFT with the specified tokenId does not exist yet, ownerOf(tokenId) reverts with ERC721NonexistentToken before the ownership check, causing unexpected errors and inconsistent messages
Likelihood:
This occurs when a user tries to list a token that has not yet been minted.
This occurs when frontend scripts pass invalid token IDs.
Impact:
Misleading error messages may confuse users or break frontends, but do not directly cause fund loss.
Could break frontend logic or automated scripts expecting "Not the owner".
Explanation:
This PoC shows that attempting to list a token that has not yet been minted triggers a revert with a confusing error (ERC721NonexistentToken) rather than the expected "Not the owner" message. It shows the contract fails to handle minted tokens properly.
Explanation:
By first checking whether the token exists, the contract can give a consistent and informative error, preventing misleading reverts and improving User Experience.
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.