Status.NICE
has value 0, this means that every address in the mappings s_theListCheckedOnce
and s_theListCheckedTwice
has default value to Status.NICE
and can therefor claim the gift if not explicitly set to another Status.
The following is an example of test that should not pass:
An attacker can generate an "infinite" amount of address and claim an "infinite" amount of gift.
Change the Status enum to reflect the value in the README with UNKNOWN as a default value:
In Solidity the first element of an enum is the default value. In Santa's List, the means each person is mapped by default to 'NICE'.
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.