Skip to content

Instantly share code, notes, and snippets.

@jmrocco
Created January 19, 2021 04:24
Show Gist options
  • Save jmrocco/cce9b97179b8cb46f8f60d08200933e8 to your computer and use it in GitHub Desktop.
Save jmrocco/cce9b97179b8cb46f8f60d08200933e8 to your computer and use it in GitHub Desktop.
pragma solidity ^ 0.5.2;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
contract MyContract is Ownable {
function everyone() public {
// anyone can use this function
}
function notEveryone() public onlyOwner {
//only the owner can call this function
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment