DatingDapp

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

require condition ("Profile already exists") in mintProfile from src/SoulboundProfileNFT.sol is invalid

Summary

require condition for function : in function mintProfile from src/SoulboundProfileNFT.sol is invalid.

Vulnerability Details

The require leading to "Profile already exists" is :

profileToToken[msg.sender] == 0

Impact

a given user which has no profile registered in this mapping will never be able to register.

Tools Used

nothing

Recommendations

The require leading to "Profile already exists" is :

profileToToken[msg.sender] == 0

and instead should be :

profileToToken[msg.sender] != 0

Updates

Appeal created

n0kto Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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