aboutsummaryrefslogtreecommitdiffstats
path: root/std/mortal.sol
diff options
context:
space:
mode:
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);
+ }
+}