solidity/std/owned.sol

14 lines
190 B
Solidity
Raw Normal View History

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
}
}
function owned() {
owner = msg.sender;
}
}