Created
February 21, 2019 14:28
-
-
Save ankitbrahmbhatt1997/7cb6fce88591ea7d2212fe1410344df7 to your computer and use it in GitHub Desktop.
modifiers
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
modifier onlyAdmin { | |
require(msg.sender == admin); | |
_; | |
} | |
modifier goalReached { | |
require(raisedAmount >= goal); | |
_; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment