solidity/std/owned.sol
2017-09-14 15:58:04 +01:00

16 lines
222 B
Solidity

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