Last active
November 22, 2017 08:51
-
-
Save gakonst/232dc9d6d2503838c9a3e3b8858fbb37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment