Last active
September 3, 2018 13:12
-
-
Save jeroenouw/e890bd70989080f4292e25567c94f6ea to your computer and use it in GitHub Desktop.
modifier
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
/** | |
* @dev Modifier which checks if sender is equal to owner. | |
*/ | |
modifier onlyFreelancer() { | |
require(owner == msg.sender, "Sender not authorized."); | |
_; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment