diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-08-17 03:10:40 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-08-19 22:34:50 +0800 |
commit | bf430709d531bdc066a13f1b638f7fb8c63caf67 (patch) | |
tree | 974fcae1f886db0e9e3662e2f063451344e926de /std/owned | |
parent | e00f802f725e284af453d70a48d450a4d5c9925e (diff) | |
download | dexon-solidity-bf430709d531bdc066a13f1b638f7fb8c63caf67.tar.gz dexon-solidity-bf430709d531bdc066a13f1b638f7fb8c63caf67.tar.zst dexon-solidity-bf430709d531bdc066a13f1b638f7fb8c63caf67.zip |
Add back standard contracts
Diffstat (limited to 'std/owned')
-rw-r--r-- | std/owned | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/std/owned b/std/owned new file mode 100644 index 00000000..37f0ecb9 --- /dev/null +++ b/std/owned @@ -0,0 +1,13 @@ +contract owned { + address owner; + + modifier onlyowner() { + if (msg.sender == owner) { + _ + } + } + + function owned() { + owner = msg.sender; + } +} |