aboutsummaryrefslogtreecommitdiffstats
path: root/std/mortal
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-17 03:10:40 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-19 22:34:50 +0800
commitbf430709d531bdc066a13f1b638f7fb8c63caf67 (patch)
tree974fcae1f886db0e9e3662e2f063451344e926de /std/mortal
parente00f802f725e284af453d70a48d450a4d5c9925e (diff)
downloaddexon-solidity-bf430709d531bdc066a13f1b638f7fb8c63caf67.tar
dexon-solidity-bf430709d531bdc066a13f1b638f7fb8c63caf67.tar.gz
dexon-solidity-bf430709d531bdc066a13f1b638f7fb8c63caf67.tar.bz2
dexon-solidity-bf430709d531bdc066a13f1b638f7fb8c63caf67.tar.lz
dexon-solidity-bf430709d531bdc066a13f1b638f7fb8c63caf67.tar.xz
dexon-solidity-bf430709d531bdc066a13f1b638f7fb8c63caf67.tar.zst
dexon-solidity-bf430709d531bdc066a13f1b638f7fb8c63caf67.zip
Add back standard contracts
Diffstat (limited to 'std/mortal')
-rw-r--r--std/mortal8
1 files changed, 8 insertions, 0 deletions
diff --git a/std/mortal b/std/mortal
new file mode 100644
index 00000000..f304f044
--- /dev/null
+++ b/std/mortal
@@ -0,0 +1,8 @@
+import "owned";
+
+contract mortal is owned {
+ function kill() {
+ if (msg.sender == owner)
+ selfdestruct(owner);
+ }
+}