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, )); }