Destructible.sol 376 B

12345678910111213141516171819
  1. pragma solidity ^0.4.8;
  2. import "../ownership/Ownable.sol";
  3. /*
  4. * Destructible
  5. * Base contract that can be destroyed by owner. All funds in contract will be sent to the owner.
  6. */
  7. contract Destructible is Ownable {
  8. function destroy() onlyOwner {
  9. selfdestruct(owner);
  10. }
  11. function destroyAndSend(address _recipient) onlyOwner {
  12. selfdestruct(_recipient);
  13. }
  14. }