Unexpected Ether

close button

Part II

Restore the Game

Help the bar fix the game, such that cheating is not possible.

Your Task

Modify contracts/SimpleGameV2.sol such that the contract will be unaffected by unexpected ether.


  1. You should only make changes to contracts/SimpleGameV2.sol.

  2. You should not be removing any require statements.

Run tests in Questplay

Submit work in Questplay

Having successfully broken the game, the two troublemakers storm off. But now you must fix it again for the regular customers.