The tokenURI
view returns the URI of common rarity NFTs when queried about non-existing items.
Passing the token_id
of a non-existing NFT to the tokenURI
view returns the URI of a common rarity item, instead of failing and throwing.
The following test can be added to the test suite to assess the wrong behavior:
This behavior can lead to confusion and poor integration, as tokens that do not exist will be associated to common rarity, even if, when minted, they could actually be different.
Manual review, VSCode, Pytest
Querying the URI of non-existing NFTs should fail, avoiding the confusing return value of common rarity.
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.