Even without a soulmate, one can still call Soulmate.sol::getDivorced() to divorce.
Add this test to SoulmateTest.t.sol and run forge test --match-test test_WithoutSoulmateDivorced -vvvv
the issue.
Even without a soulmate, divorce is possible, and address(0) will also be recorded as divorced.
manual review
Add an error at line 16 in Soulmate.sol
Add a conditional check in the getDivorced
function to revert if there is no Soulmate call
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.