Skip to content

Instantly share code, notes, and snippets.

@ihordiachenko
Created April 19, 2018 12:55
Show Gist options
  • Save ihordiachenko/b4407c289896385ca5ab6d08c58d9ec4 to your computer and use it in GitHub Desktop.
Save ihordiachenko/b4407c289896385ca5ab6d08c58d9ec4 to your computer and use it in GitHub Desktop.
Force ether to a contract
pragma solidity ^0.4.21;
/**
* This contract allows to force Ether into a contract.
*/
contract SucideBomber {
function SucideBomber() payable {}
function boom(address target) public {
selfdestruct(target);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment