From 3070612f1509a5789c7d26af429ca472ebad62ac Mon Sep 17 00:00:00 2001 From: David Adegoke <64401859+Blazebrain@users.noreply.github.com> Date: Fri, 17 Jul 2026 04:40:30 +0100 Subject: [PATCH] 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 --- lib/evm/cw_evm.dart | 3 +++ lib/view_model/send/send_view_model.dart | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/lib/evm/cw_evm.dart b/lib/evm/cw_evm.dart index 0b28b7ee0..a291169ee 100644 --- a/lib/evm/cw_evm.dart +++ b/lib/evm/cw_evm.dart @@ -166,12 +166,15 @@ class CWEVM extends EVM { amount: amount, fee: fee, tokenSymbol: tokenSymbol, + exponent: exponent, direction: direction, isPending: isPending, date: date, confirmations: confirmations, to: to, from: from, + evmSignatureName: evmSignatureName, + contractAddress: contractAddress, chainId: chainId); @override diff --git a/lib/view_model/send/send_view_model.dart b/lib/view_model/send/send_view_model.dart index a566cab7d..a652619bd 100644 --- a/lib/view_model/send/send_view_model.dart +++ b/lib/view_model/send/send_view_model.dart @@ -1121,6 +1121,10 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor // it is required because evm, solana and tron don't actually save the transaction info when you send something. // instead, they rely on the tx to eventually get fetched at sync time, which can take a while if (isEVMWallet) { + final selectedToken = evm!.getERC20Currencies(wallet).firstWhereOrNull( + (token) => token.title.toUpperCase() == selectedCryptoCurrency.title.toUpperCase(), + ); + wallet.transactionHistory.addOne(evm!.getTransactionInfo( id: pendingTransaction!.evmTxHashFromRawHex!, height: 0, @@ -1132,6 +1136,7 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor date: DateTime.now(), confirmations: 0, chainId: wallet.chainId ?? 0, + contractAddress: selectedToken?.contractAddress, )); }