This is a GAS.
If we assume that Santa will not change his mind after he decided an address state we can remove the check on s_theListCheckedOnce
from the collectPresent()
function
Change this: if (s_theListCheckedOnce[msg.sender] == Status.NICE && s_theListCheckedTwice[msg.sender] == Status.NICE)
in: if (s_theListCheckedTwice[msg.sender] == Status.NICE)
And change this:
in
} else if (s_theListCheckedTwice[msg.sender] == Status.EXTRA_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.