By default enum
value in Solidity will be equal to the first element. In our case the first element is NICE
. This opens the opportunity for vulnerability.
All users will be able to collect presents, because by default their status will be NICE
.
Manual Review, Foundry
Added the following test case:
Test passes:
Make the first element of the enum Status
to NAUGHTY
or NOT_CHECKED_TWICE
, for example
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.