-
-
Save jmrocco/cce9b97179b8cb46f8f60d08200933e8 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.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