RamNFT::getCharacteristics
returns characteristics of NFT that is not yet created when passing tokenId
argument that does not match any Ram NFT.
When calling RamNFT::getCharacteristics
with value for tokenId
that is greater than RamNFT::tokenCounter
, it returns characteristics of NFT that doesn't exist (all of it's properties have default value - false).
It may confuse the user that there exists Ram NFT with such tokenId.
Manual review
Add the following test case to: Dussehra.t.sol
:
Run the following command: forge test --mt test_getCharacteristicsForInexsitingNFT
Revert if tokenId
matches existing Ram NFT:
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.