If a lover matches with another one, then decides to call Soulmate::getDivorced
function. He will still not able to mint himself a new Soulmate NFT and search for another soulmate, due to the fact that getDivorced
function is not resetting any state changes made. This is crutial, because it makes the protocol totally unusable for users who already have participated and searching for new match.
Add the following in the SoulmateTest.t.sol
file:
High: Makes the protocol's main functionality unusable for old users.
Manual Review, Foundry
Consider resetting the Soulmate::ownerToId
mapping for both soulmates:
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.