pragma solidity 0.8.7; contract Ownable { // address owner; // NOTE: adding public will automatically create a getter // function for the state varaible. address public owner; // modifiers used to restrict access to functions modifier onlyOwner { require(msg.sender == owner, "owner address missing"); _; } // don't need to pass the address in, msg.sender works here // constructor(address _owner){ constructor(){ owner = msg.sender; } }