ForceEther.sol 384 B

12345678910111213141516
  1. pragma solidity ^0.4.23;
  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. constructor() public payable { }
  9. function destroyAndSend(address _recipient) public {
  10. selfdestruct(_recipient);
  11. }
  12. }