Users can call enterRaffle with an empty array as argument.
One can call enterRaffle with an empty array. The require condition looking at the msg.value is met in this case since no entrance fee needs to be paid. An event is emitted.
This does not impact the protocol directly. The only consequence it that the calling user will use on transaction fees on a transaction that did not change any state.
Manual review
Add a require the verifies that the argument has a length of at least 1.
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.