Created
February 1, 2018 21:55
-
-
Save lhartikk/5536ca32de800375ffc049a77b4f781e 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
/** | |
* Allow the owner of the contract to | |
* withdraw the bounty after the release time has passed | |
*/ | |
function withdraw() public { | |
require(msg.sender == owner); | |
require(now >= releaseTime); | |
msg.sender.transfer(this.balance); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment