The event SoulmateAreReunited
does not report the correct address for soulmate2
because the emit
is placed in the 'if
statement
address soulmate2 = idToOwners[nextID][1];
is placed outside of the if statements and the address of the 'soulmate2' is not assigned to the variable 'address soulmate2' when a SoulmateAreReunited
is emitted.
This has an impact on the address displayed by this event that shows always 'address(0)' as 'soulmate2' regardless the address used as 'soulmate2' in test.
It can be noticed using command '-vvvv' in Foundry.
Foundry
Replace 'solumate2' with 'msg.sender' in line 82.
Low severity, inconsistencies in event emission Sidenote: Separating all event findings given root causes are different with different functions involved. There could be alot of debate on whether wrong emit events consitute low severity, but I believe, - There are direct inconsistencies in the code logic - Codehawks [low severity categorization guidelines](https://docs.codehawks.com/hawks-auditors/how-to-evaluate-a-finding-severity#low-severity-findings) supports its severity as seen below, especially noting the term `Minimal to no impact` > - Minimal to no impact on the funds or the protocol's main functionality.
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.