Skip to content
RED SAG Skills
medium10 pts · first answer countssolidityeth-transfers

Ignoring a low-level call result

What is wrong with this withdrawal code?

function withdraw() external {
    uint256 amount = balances[msg.sender];
    balances[msg.sender] = 0;
    msg.sender.call{value: amount}("");
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions