The Dussehra.sol::enterPeopleWhoLikeRam
function can be called after the event ends, any Ether sent to the contract will be lost forever.
Once the killRavana
function is called, the totalAmountGivenToRam
variable is set. Then once the withdraw
function is called, totalAmountGivenToRam
is set to 0. This means that the function can only be called once. If someone call's enterPeopleWhoLikeRam
and sends ether to the contract, then that money will be lost forever and nobody can withdraw it.
The test below passes showing that if enterPeopleWhoLikeRam
is called after withdraw
is called, then that money will not be able to be retrieved.
--Foundry
It is recommended to make the enterPeopleWhoLikeRam
function revert if someone is trying to call it after killRavana
has been called.
It is the user's responsibility to check the date of the event.
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.