Beginner FriendlyFoundryGameFi
100 EXP
View results
Submission Details
Severity: low
Invalid

`MartenitsaToken::tokenURI` is Empty and not Overriden, Leading to Incomplete NFTs

[L-1] MartenitsaToken::tokenURI is Empty and not Overriden, Leading to Incomplete NFTs

Description: The absence of a tokenURI in the MartenitsaToken contract results in tokens lacking associated metadata. Consequently, users and applications cannot access information about the token, including its name, description, or image.

Impact: This issue significantly reduces the utility and appeal of the tokens, as they lack the rich context and information that metadata provides. It also affects the user experience, as users cannot see detailed information about the tokens they interact with or view. Additionally, it reduces the interoperability of the tokens with other systems and platforms, which expect tokens to have associated metadata.

Proof of Concept: Here is a simple code that shows the problem:

function testTokenURIIsEmpty() public createMartenitsa {
string memory tokenUri = martenitsaToken.tokenURI(0);
assert(
keccak256(abi.encodePacked(tokenUri)) ==
keccak256(abi.encodePacked(""))
);
}

Recommended Mitigation: Ensure that each MartenitsaToken has a valid tokenURI that points to a JSON file containing the token's metadata. This will allow users and applications to access and display the token's information.

Updates

Lead Judging Commences

bube Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.