Anyone is able to collect the "Nice" present if Santa has not checked their status to something other than Nice
.
The default value for enums in Solidity is the first value. With current order of the enum Status
, all address in the s_theListCheckedOnce
and s_theListCheckedTwice
mappings have the default value of Nice
enabling all addresses that have not been checked to a different status to later collect a present.
All addresses that have not been checked to a status other than Nice
can collect a present after CHRISTMAS_2023_BLOCK_TIME
.
Manual review.
Change to order of the enum's values so that the first value is a sensible default.
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.