Last active
April 3, 2020 12:33
-
-
Save alexroan/43920c0fb6921ca97894e51bca5a868c to your computer and use it in GitHub Desktop.
BasicOwnable.sol
This file contains hidden or 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.5; | |
import "@openzeppelin/contracts/ownership/Ownable.sol"; | |
contract OwnableContract is Ownable { | |
function restrictedFunction() public onlyOwner returns (uint) { | |
return 99; | |
} | |
function openFunction() public returns (uint) { | |
return 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment