aboutsummaryrefslogtreecommitdiffstats
path: root/std/mortal.sol
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-19 22:51:40 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-19 23:13:24 +0800
commit9ca4948d6aca230d524882bbcabd1d4230a3ad23 (patch)
treeed8c42c185cf80796d886258d43f7289298a7438 /std/mortal.sol
parente25fcecaf4de63774b29ccabc456b4cbf38f8425 (diff)
downloaddexon-solidity-9ca4948d6aca230d524882bbcabd1d4230a3ad23.tar.gz
dexon-solidity-9ca4948d6aca230d524882bbcabd1d4230a3ad23.tar.zst
dexon-solidity-9ca4948d6aca230d524882bbcabd1d4230a3ad23.zip
CoinAdd .sol prefix to files
Diffstat (limited to 'std/mortal.sol')
-rw-r--r--std/mortal.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/std/mortal.sol b/std/mortal.sol
new file mode 100644
index 00000000..8de019ab
--- /dev/null
+++ b/std/mortal.sol
@@ -0,0 +1,8 @@
+import "./owned.sol";
+
+contract mortal is owned {
+ function kill() {
+ if (msg.sender == owner)
+ selfdestruct(owner);
+ }
+}