Skip to content

Instantly share code, notes, and snippets.

@aakilfernandes
Last active March 31, 2017 18:27
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 aakilfernandes/bb9b22967d9f559c8510427cdee80431 to your computer and use it in GitHub Desktop.
Save aakilfernandes/bb9b22967d9f559c8510427cdee80431 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.4;
contract Sunsets {
uint256 public sunset;
event Sunset(uint256 sunset);
modifier sunsets() {
if (sunset > 0) {
Sunset(sunset);
if (sunset < now) {
throw;
}
}
_;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment