In the current code, the default value of the enum Status
is set to NICE
, instead of UNKNOWN
.
By default, every value of mapping s_theListCheckedOnce
and s_theListCheckedTwice
is initialized with the value NICE
, rather than UNKNOWN
.
This setting could lead to incorrect results in all invariant checks that utilize the Status
enum.
Foundry
The initial value of the enum Status
should be set to UNKNOWN
. This change would ensure that any instances of Status that are not explicitly checked are correctly initialized to UNKNOWN by 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.