From 8c4d4e40836f89a17968ecc06b42819216e973d3 Mon Sep 17 00:00:00 2001 From: Luis Alfredo Lorenzo <108485808+luis-immunefi@users.noreply.github.com> Date: Mon, 25 Aug 2025 16:32:25 -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");