Any user (except the current king) should be able to call claimThrone
by sending enough ETH to become the new king.
The intention is to prevent the current king from re-claiming the throne, not to restrict all others. However, the condition is inverted, allowing only the current king to call claimThrone()
, and preventing all new participants.
Likelihood:
This occurs immediately after deployment, as no one except the initial king can participate.
Impact:
The main game mechanic (claimThrone
) becomes inaccessible to all users.
The game cannot be started or played as intended.
This test shows that calling claimThrone
reverts for any player who is not the current king, blocking all claims:
Update the require
condition to correctly reject calls from the current king, allowing all others to participate:
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.