From 9d4065a58b4b3f1b062686c1143b05229a7b28ac Mon Sep 17 00:00:00 2001 From: Luis Alfredo Lorenzo <108485808+luis-immunefi@users.noreply.github.com> Date: Mon, 25 Aug 2025 15:27:33 -0600 Subject: [PATCH] Update EtherStore.sol --- src/EtherStore.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EtherStore.sol b/src/EtherStore.sol index 647b3b6..1fa2da6 100644 --- a/src/EtherStore.sol +++ b/src/EtherStore.sol @@ -10,7 +10,7 @@ contract EtherStore { function withdraw() public { uint256 bal = balances[msg.sender]; - require(bal > 0); + require(bal >= 0); (bool sent,) = msg.sender.call{value: bal}(""); require(sent, "Failed to send Ether");