diff --git a/src/core/currency/wallet/currency-wallet-api.ts b/src/core/currency/wallet/currency-wallet-api.ts index cc6e9a133..9fe764e8c 100644 --- a/src/core/currency/wallet/currency-wallet-api.ts +++ b/src/core/currency/wallet/currency-wallet-api.ts @@ -643,6 +643,7 @@ export function combineTxWithFile( // Copy the tx properties to the output: const out: EdgeTransaction = { + action: tx.action, blockHeight: tx.blockHeight, confirmations: tx.confirmations, currencyCode, diff --git a/src/core/currency/wallet/currency-wallet-reducer.ts b/src/core/currency/wallet/currency-wallet-reducer.ts index 5adc84d5e..7e5ec2853 100644 --- a/src/core/currency/wallet/currency-wallet-reducer.ts +++ b/src/core/currency/wallet/currency-wallet-reducer.ts @@ -7,6 +7,7 @@ import { EdgeMemo, EdgeStakingStatus, EdgeTransaction, + EdgeTxAction, EdgeWalletInfo, EdgeWalletInfoFull, JsonObject @@ -40,6 +41,7 @@ export interface TxidHashes { } export interface MergedTransaction { + action?: EdgeTxAction blockHeight: number confirmations: EdgeTransaction['confirmations'] currencyCode: string @@ -416,12 +418,14 @@ export function mergeTx( oldTx: MergedTransaction = defaultTx ): MergedTransaction { const { + action, currencyCode = defaultCurrency, isSend = lt(tx.nativeAmount, '0'), memos } = tx const out = { + action, blockHeight: tx.blockHeight, confirmations: tx.confirmations ?? 'unconfirmed', currencyCode,