DatingDapp

First Flight #33
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

`_baseURI` not implemented

Description: Without _baseURI(), the NFT metadata would not be correctly formatted as a valid data URI, and it wouldn't display properly. If _baseURI() is missing or incorrect, the metadata returned by tokenURI() won't have the correct data: scheme.

Recommended Mitigation: Add the following function in SoulboundProfileNFT

function _baseURI() internal pure override returns (string memory) {
return "data:application/json;base64,";
}
Updates

Appeal created

n0kto Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

invalid_baseURI_not_override

`_baseURI` can remains empty, the token URI will have a valid JSON. Rest can be handled in the app interface.

Support

FAQs

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