By default, a user who has not yet been checked has the status Nice.
The first value in the SantaList::Status enum must be selected with care.
"The default value of an enum is it's first member"
(https://docs.soliditylang.org/en/latest/control-structures.html#scoping-and-declarations).
so the default value of SantasList::Status is NICE.
therefore by default the functions SantasList::getNaughtyOrNiceOnce and SantasList::getNaughtyOrNiceTwice
will return NICE for any user who has not yet been checked out.
which means that calling the function SantasList::collectPresent with this type of user will
mint the NFT instead of reverting.
Any user who has not yet been checked can mint SantaList's NFT
every time they can call the `SantaList::collectPresent` function
-Foundry
Add a new value to the enum SantaList::Status and place it as the first element in the list as follows:
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.