In function claimThrone()
, it's validating msg.sender == currentKing
, this condition check is wrong.
Likelihood:
Reason 1: When player call function claimThrone()
it will be reverted because initial state of currentKing
equal address(0)
Impact:
Impact 1: No one can call function claimThrone()
success, so no one can join this game.
In contract Game
, players must start with function `claimThrone()`.
Inside this function, state currentKing
is initialized.
No one can call function claimThrone()
success, so state currentKing
never assigned to other wallet except zero address
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.