Only those who have had their status changed to NICE
(or EXTRA_NICE
) by Santa should be able to mint NFTs, but due to the default value of Status, anyone can mint it.
In the enum, the value defined at the top is set to NICE
. solidity's specification makes this the initial value, so s_theListCheckedOnce[msg.sender] == Status.NICE && s_theListCheckedTwice[msg. sender] == Status.NICE
validation will pass anyone.
Anyone can mint NFT that should be unmintable.
Manual
The top definition of enum should be NAUGHTY
or NONE
, etc.
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.