pragma solidity ^0.4.25; contract modifierSample { address public owner; constructor() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function changeOwner(address newOwner) public onlyOwner { owner = newOwner; } }
0.4.25