Anyone can stop all members of the list from collecting their presents by calling checkList with changing the Status.NAUGHTY for all addresses which distributes s_theListCheckedOnce.
Bellow is the test which shows that anyone can stop either one or all member of the list from collecting their presents by calling checkList with changing the Status.NAUGHTY for all addresses then calling collectPresent will revert with SantasList__NotNice error.
Here is the code which shows that checkList can be called by anyone and it will change the Status of the address
Here is the code which shows that collectPresent will revert if the Status of the address is not Status.NICE or Status.EXTRA_NICE.
for example if santa marked the address as Status.NICE in s_theListCheckedOnce and s_theListCheckedTwice by calling checkList and
checkTwice respectively then anyone can call checkList and change the Status to Status.NAUGHTY which will revert on calling
collectPresent with SantasList__NotNice error. both the checks marked below .
Anyone can stop either one or all member of the list from collecting their presents by calling checkList with changing the Status.NAUGHTY for all addresses which distributes s_theListCheckedOnce.
Manual Review
foundry
checkList should be called by santa only.
Anyone is able to call checkList() changing the status of a provided address. This is not intended functionality and is meant to be callable by only Santa.
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.