ForceEther.sol 396 B

12345678910111213
  1. pragma solidity ^0.4.8;
  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(address target) payable {
  9. // Selfdestruct transfers all Ether to the arget address
  10. selfdestruct(target);
  11. }
  12. }