Last active
March 31, 2017 18:27
-
-
Save aakilfernandes/bb9b22967d9f559c8510427cdee80431 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.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