Ethernaut Puzzle 09 King
The smart contract code provided in this question is very straightforward. To claim kingship, we need to bid higher than the current prize.
The current price
is:
1 | await contract.prize().then(v => v.toString()) |
The question does not require the king to be at my current address. In other words, as long as the king’s address changes, the question is considered solved. We can write a smart contract here to solve the problem.
1 | // SPDX-License-Identifier: MIT |