pragma solidity ^0.5.0; import "@openzeppelin/contracts/ownership/Ownable.sol"; contract MyContract is Ownable { function normalThing() public { // anyone can call this normalThing() } function specialThing() public onlyOwner { // only the owner can call specialThing()! } }
0.5.0