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