Description The ChristmasDinner::receive
function does not update the participant
mapping when being triggered, it only updates the etherBalance
mapping.
Impact
Users who sign up by sending ETH directly to the contract are not added to the dinner, not counting their intended participation.
Proof of Concepts
Add the followiing test to ChristmasDinnerTest.t.sol file.
Recommended mitigation
Add the following change to the code.
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.