ChristmasDinner::Deposit
funcion does not allow a user to sign-up others.Description
Per the @dev natspec of function ChristmasDinner::Deposit
, users should be able to sign-up other users but this is not the case, as only msg.sender
is added into the participant
mapping.
Impact
Participants cannot sign up friends, reducing the utility of the contract.
Proof of Concepts
The function offers no option to add an address
paramater for signing up other users besides msg.sender
.
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.