aboutsummaryrefslogtreecommitdiffstats
path: root/contracts/chequebook/contract/mortal.sol
diff options
context:
space:
mode:
Diffstat (limited to 'contracts/chequebook/contract/mortal.sol')
-rw-r--r--contracts/chequebook/contract/mortal.sol10
1 files changed, 10 insertions, 0 deletions
diff --git a/contracts/chequebook/contract/mortal.sol b/contracts/chequebook/contract/mortal.sol
new file mode 100644
index 000000000..c43f1e4f7
--- /dev/null
+++ b/contracts/chequebook/contract/mortal.sol
@@ -0,0 +1,10 @@
+pragma solidity ^0.4.0;
+
+import "./owned.sol";
+
+contract mortal is owned {
+ function kill() public {
+ if (msg.sender == owner)
+ selfdestruct(owner);
+ }
+}