Created
July 21, 2016 08:36
-
-
Save khovratovich/90def430180d405c1702c6e211fee25e to your computer and use it in GitHub Desktop.
Split contract by Vitalik Buterin
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
contract HFConditionalTransfer { | |
function transferIfHF(address to) { | |
if (address(0xbf4ed7b27f1d666546e30d74d50d173d20bca754).balance > 2000000 ether) | |
to.send(msg.value); | |
else | |
msg.sender.send(msg.value); | |
} | |
function transferIfNoHF(address to) { | |
if (address(0xbf4ed7b27f1d666546e30d74d50d173d20bca754).balance <= 2000000 ether) | |
to.send(msg.value); | |
else | |
msg.sender.send(msg.value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment