NICE is the first value in Status enum which then equals to 0.
Everyone is then considered NICE by default without any need to call checkList or checkTwice
As NICE value is the first one in Status enum, it corresponds to value 0.
Mappings s_theListCheckedOnce and s_theListCheckedTwice provides the value 0 for adresses which are not mapped yet.
As this value corresponds to the NICE status, everyone is considered NICE by default.
Any address could call collectPresent function and then collect the NFT before any call to checkList or < checkTwicewas done on that address.
Manual
It is recommended to add UNKNOWNstatus ad the beginning of the Status enum.
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.