solidity/std/owned.sol
2016-11-11 19:59:31 +01:00

16 lines
215 B
Solidity

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