The message in the request_raffle_winner
function doesn't display the real reason why the call was reverted to the user.
There are several checks in the request_raffle_winner
function:
raffle_state
is OPEN
RAFFLE_DURATION has passed since start of the raffle
The number of players is more than 0
The balance of the contract is more than 0
After these checks are combined by the and
operator and in case if resulting value is false transaction is reverted with an ERROR_NOT_ENDED
error. That error name doesn't reflect the reason why the transaction was reverted.
Low
VS Code.
Consider changing the error message to a more meaningful message.
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.