solidity/std/owned.sol

16 lines
220 B
Solidity

pragma solidity >0.4.21;
contract owned {
address owner;
modifier onlyowner() {
if (msg.sender == owner) {
_;
}
}
constructor() public {
owner = msg.sender;
}
}