solidity/std/owned.sol

16 lines
220 B
Solidity
Raw Normal View History

pragma solidity >0.4.21;
2016-11-02 11:32:55 +00:00
2016-08-16 19:10:40 +00:00
contract owned {
address owner;
modifier onlyowner() {
if (msg.sender == owner) {
2016-09-06 21:09:13 +00:00
_;
2016-08-16 19:10:40 +00:00
}
}
constructor() public {
2016-08-16 19:10:40 +00:00
owner = msg.sender;
}
}