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");