fix: Wrong fiat for sent tx from swaps (#3409)

* fix android CI * fix: wrong fiat amount showing for sent tx from swaps * fix: use token address to fetch fiat amount for pending send entry

David Adegoke committed Jul 17, 2026 at 04:40 UTC 3070612f1509a5789c7d26af429ca472ebad62ac
2 files changed +8
lib/evm/cw_evm.dart
+3
@@ -166,12 +166,15 @@ class CWEVM extends EVM {
166 amount: amount,
167 fee: fee,
168 tokenSymbol: tokenSymbol,
169 + exponent: exponent,
170 direction: direction,
171 isPending: isPending,
172 date: date,
173 confirmations: confirmations,
174 to: to,
175 from: from,
176 + evmSignatureName: evmSignatureName,
177 + contractAddress: contractAddress,
178 chainId: chainId);
179
180 @override
lib/view_model/send/send_view_model.dart
+5
@@ -1121,6 +1121,10 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
1121 // it is required because evm, solana and tron don't actually save the transaction info when you send something.
1122 // instead, they rely on the tx to eventually get fetched at sync time, which can take a while
1123 if (isEVMWallet) {
1124 + final selectedToken = evm!.getERC20Currencies(wallet).firstWhereOrNull(
1125 + (token) => token.title.toUpperCase() == selectedCryptoCurrency.title.toUpperCase(),
1126 + );
1127 +
1128 wallet.transactionHistory.addOne(evm!.getTransactionInfo(
1129 id: pendingTransaction!.evmTxHashFromRawHex!,
1130 height: 0,
@@ -1132,6 +1136,7 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
1136 date: DateTime.now(),
1137 confirmations: 0,
1138 chainId: wallet.chainId ?? 0,
1139 + contractAddress: selectedToken?.contractAddress,
1140 ));
1141 }
1142