solidity/std/owned.sol
2018-04-12 10:43:00 +02:00

16 lines
220 B
Solidity

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