solidity/std/owned.sol

16 lines
215 B
Solidity
Raw Normal View History

2016-11-02 11:32:55 +00:00
pragma solidity ^0.4.0;
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;
}
}