Last active
November 16, 2017 08:12
-
-
Save gakonst/295ba4191c87762ae49ba888fb52a1ff to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function withdraw(uint _amount) public { | |
| if(balances[msg.sender] >= _amount) { | |
| if(msg.sender.call.value(_amount)()) { | |
| _amount; | |
| } | |
| balances[msg.sender] -= _amount; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment