From 37f8a22ec2daaf9c1e031707e9624330ac501a41 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 16 Jan 2024 10:14:49 -0600 Subject: [PATCH] don't grab successful token transactions in eth wallet --- lib/wallets/wallet/impl/ethereum_wallet.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/wallets/wallet/impl/ethereum_wallet.dart b/lib/wallets/wallet/impl/ethereum_wallet.dart index fae9f040f..3e88e1305 100644 --- a/lib/wallets/wallet/impl/ethereum_wallet.dart +++ b/lib/wallets/wallet/impl/ethereum_wallet.dart @@ -266,6 +266,10 @@ class EthereumWallet extends Bip39Wallet with PrivateKeyInterface { for (final tuple in allTxs) { final element = tuple.item1; + if (element.hasToken && !element.isError) { + continue; + } + //Calculate fees (GasLimit * gasPrice) // int txFee = element.gasPrice * element.gasUsed; final Amount txFee = element.gasCost;