// INSECURE | |
function withdraw() external { | |
uint256 amount = balances[msg.sender]; | |
require(msg.sender.call.value(amount)()); | |
balances[msg.sender] = 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment