Skip to content

Instantly share code, notes, and snippets.

@alexroan
Last active April 3, 2020 12:33
Show Gist options
  • Save alexroan/43920c0fb6921ca97894e51bca5a868c to your computer and use it in GitHub Desktop.
Save alexroan/43920c0fb6921ca97894e51bca5a868c to your computer and use it in GitHub Desktop.
BasicOwnable.sol
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