Created
July 22, 2020 21:19
-
-
Save iamdefinitelyahuman/67f08449e68fefdd02f6b031c12d5e7a 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
@external | |
def withdraw_from(_value: uint256) -> bool: | |
assert self.deposited[msg.sender] >= _value, "Insufficient balance" | |
self.deposited[msg.sender] = _value | |
send(msg.sender, _value) | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment