Skip to content

Instantly share code, notes, and snippets.

@maurelian
Last active March 16, 2018 02:04
Show Gist options
  • Save maurelian/a16d6014be93d0d1ed2b33061f176791 to your computer and use it in GitHub Desktop.
Save maurelian/a16d6014be93d0d1ed2b33061f176791 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.10;
contract A {
address alice = 0x14723a09acff6d2a60dcdf7aa4aff308fddc160c;
address bob = 0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db;
function foo() public {
selfdestruct(alice); // alice gets the ETH.
selfdestruct(bob);
}
function () public payable{}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment