Depositors in ETH must manually change their participation status, as it is not set automatically.
https://github.com/Cyfrin/2024-12-christmas-dinner/blob/9682dcc306db935a2511e1eb8280d17ef01e9004/src/ChristmasDinner.sol#L205
When a user deposits ETH, they trigger the christmasDinner::receive function. However, unlike the christmasDinner::deposit function, the receive function does not set participant[msg.sender] = true. As a result, the user needs to manually update their participation status via the christmasDinner::changeParticipationStatus function to mark their status as true.
use this test in christmasDinnerTest.t.sol
If the user does not manually update their status, they will be considered a Funder instead of a Participant.
IDE
Manual Review
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.