This external view function will return enum value NICE for addresses not currently in the mapping.
When mapping a value to an enum in solidity, if the address has not been set in the mapping, the query will always return the first value of the enum, which is 'NICE'.
this is low impact as it is external view, but may lead to confusion and a bad UX.
Manual Review
Reorder the enum so naughty is first, and document well that an address uninitialized may return NAUGHTY, but it is worse if it returns NICE incorrectly.
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.