Any user can get divorced without having a soulmate, which should not be possible.
The getDivorced() function in Soulmate.sol does not check if the user has a soulmate, so he will be marked as divorced even if he does not have a soulmate.
Also, the function should check if the user is already divorced, to avoid marking the couple as divorced again.
This test calls getDivorced() without having a soulmate.
The test passes, confirming that the user can get divorced without having a soulmate.
Users may make mistakes and get divorced before they even have a soulmate, or when they are already divorced.
Foundry, Manual review
Add soulmate checks in Soulmate:getDivorced()
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.