Created
July 10, 2017 11:22
-
-
Save mcdee/99981658a2839f94cecdb26cbd7c995b to your computer and use it in GitHub Desktop.
This file contains 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
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