diff --git a/contracts/ERC20Splitter.sol b/contracts/ERC20Splitter.sol index 8a0f486..b245664 100644 --- a/contracts/ERC20Splitter.sol +++ b/contracts/ERC20Splitter.sol @@ -68,6 +68,7 @@ contract ERC20Splitter is ReentrancyGuard { address tokenAddress = tokenAddresses[i]; uint256 amount = balances[tokenAddress][msg.sender]; withdrawnAmounts[i] = amount; + if (amount == 0) { continue; }