//Lets empty your balance, shall we! pragma solidity 0.4.18; contract ForceEther { bool youWin = false; function onlyNonZeroBalance() { require(this.balance > 0); youWin = true; } // throw if any ether is received function() payable { revert(); } }
0.4.18