Skip to content

Instantly share code, notes, and snippets.

@mcdee
Created July 10, 2017 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcdee/99981658a2839f94cecdb26cbd7c995b to your computer and use it in GitHub Desktop.
Save mcdee/99981658a2839f94cecdb26cbd7c995b to your computer and use it in GitHub Desktop.
contract BadSender {
// Forward funds to the splitter contract
function forward(address other) payable {
// This is the address of the splitter contract
address splitterContract = 0xAe3aE77F5ab2490C46958D0b05f766871c17cA5e;
BadSplitter splitter = BadSplitter(splitterContract);
splitter.deposit.gas(200000).value(msg.value)(other);
}
// Purely malevolent fallback
function () {
revert();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment