ForceEther.sol 392 B

123456789101112131415
  1. pragma solidity ^0.4.18;
  2. // @title Force Ether into a contract.
  3. // @notice even
  4. // if the contract is not payable.
  5. // @notice To use, construct the contract with the target as argument.
  6. // @author Remco Bloemen <remco@neufund.org>
  7. contract ForceEther {
  8. function ForceEther() public payable { }
  9. function destroyAndSend(address _recipient) public {
  10. selfdestruct(_recipient);
  11. }
  12. }