solidity/std/owned.sol
2016-09-06 22:11:17 +01:00

14 lines
190 B
Solidity

contract owned {
address owner;
modifier onlyowner() {
if (msg.sender == owner) {
_;
}
}
function owned() {
owner = msg.sender;
}
}