The function tokenURI(uint256 id)
in the provided Solidity code.
This function is supposed to return a URI for a given token ID, which is typically a metadata link that provides information about the token. However, in this contract, the function is declared but not implemented. This means that it's impossible to retrieve metadata for tokens in this contract, which is a standard feature of ERC721 tokens.
This could lead to a lack of necessary information about tokens and hinder the interaction with other contracts or services that rely on this metadata.
Manual Review
To resolve this issue, you should implement the tokenURI(uint256 id)
function to return a valid URI for each token.
Also, consider adding a check for a maliciously provided NFT id, the returned data may deceive potential users, as the method will return data for a non-existent NFT id. This can lead to a poor user experience or financial loss for users.
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.