DatingDapp

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

User Age Cannot Be Updated

Summary

In the SoulboundProfileNFT, the age field in the Profile struct is stored permanently and cannot be updated.

Vulnerability Details

Once a profile is minted, the age field is immutable. This limits the contract's ability to reflect changes in user data over time when they grow older.

Impact

  • Inability to update user profiles.

  • Reduced usability of the protocol.

Tools Used

  • Manual code review.

Recommendations

Add a function to update the age field:

function updateAge(uint8 newAge) external {
uint256 tokenId = profileToToken[msg.sender];
require(tokenId != 0, "No profile found");
_profiles[tokenId].age = newAge;
}
Updates

Appeal created

n0kto Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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