diff options
Diffstat (limited to 'std/mortal')
-rw-r--r-- | std/mortal | 8 |
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); + } +} |