Destructible.sol 448 B

1234567891011121314151617181920
  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. * In second function all funds will be sent to the recepient.
  7. */
  8. contract Destructible is Ownable {
  9. function destroy() onlyOwner {
  10. selfdestruct(owner);
  11. }
  12. function destroyAndSendRecepient(address _recipient) onlyOwner {
  13. selfdestruct(_recipient);
  14. }
  15. }