Skip to content

Instantly share code, notes, and snippets.

@jeroenouw
Last active September 3, 2018 13:12
Show Gist options
  • Save jeroenouw/e890bd70989080f4292e25567c94f6ea to your computer and use it in GitHub Desktop.
Save jeroenouw/e890bd70989080f4292e25567c94f6ea to your computer and use it in GitHub Desktop.
modifier
/**
* @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