Skip to content

Instantly share code, notes, and snippets.

@lhartikk
Created February 1, 2018 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lhartikk/5536ca32de800375ffc049a77b4f781e to your computer and use it in GitHub Desktop.
Save lhartikk/5536ca32de800375ffc049a77b4f781e to your computer and use it in GitHub Desktop.
/**
* 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