diff --git a/genesis-smart-contracts/Owner.sol b/genesis-smart-contracts/Owner.sol new file mode 100644 index 000000000..87e3ddc92 --- /dev/null +++ b/genesis-smart-contracts/Owner.sol @@ -0,0 +1,19 @@ +// genesis-smart-contracts/Owner.sol +pragma solidity ^0.8.0; + +contract Owner { + address public owner; + + constructor() public { + owner = msg.sender; + } + + modifier onlyOwner() { + require(msg.sender == owner, "Only the owner can execute this function"); + _; + } + + function transferOwnership(address newOwner) public onlyOwner { + owner = newOwner; + } +}