diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-08-19 22:51:40 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-08-19 23:13:24 +0800 |
commit | 9ca4948d6aca230d524882bbcabd1d4230a3ad23 (patch) | |
tree | ed8c42c185cf80796d886258d43f7289298a7438 /std/owned.sol | |
parent | e25fcecaf4de63774b29ccabc456b4cbf38f8425 (diff) | |
download | dexon-solidity-9ca4948d6aca230d524882bbcabd1d4230a3ad23.tar.gz dexon-solidity-9ca4948d6aca230d524882bbcabd1d4230a3ad23.tar.zst dexon-solidity-9ca4948d6aca230d524882bbcabd1d4230a3ad23.zip |
CoinAdd .sol prefix to files
Diffstat (limited to 'std/owned.sol')
-rw-r--r-- | std/owned.sol | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/std/owned.sol b/std/owned.sol new file mode 100644 index 00000000..37f0ecb9 --- /dev/null +++ b/std/owned.sol @@ -0,0 +1,13 @@ +contract owned { + address owner; + + modifier onlyowner() { + if (msg.sender == owner) { + _ + } + } + + function owned() { + owner = msg.sender; + } +} |