From 9b341e302538239013277063600103a36a2ca678 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 11 Jan 2024 16:46:38 +0300 Subject: [PATCH] fix: display solana wallet addresses instead of ATA in operations --- .../src/families/solana/js-synchronization.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ledger-live-common/src/families/solana/js-synchronization.ts b/libs/ledger-live-common/src/families/solana/js-synchronization.ts index 9600c588faa4..2ca2808b595f 100644 --- a/libs/ledger-live-common/src/families/solana/js-synchronization.ts +++ b/libs/ledger-live-common/src/families/solana/js-synchronization.ts @@ -593,9 +593,9 @@ function getTokenSendersRecipients(tx: TransactionDescriptor) { new BigNumber(preTokenBalance?.uiTokenAmount.amount ?? 0), ); if (tokenDelta.lt(0)) { - accum.senders.push(account.pubkey.toBase58()); + accum.senders.push(postTokenBalance?.owner || account.pubkey.toBase58()); } else if (tokenDelta.gt(0)) { - accum.recipients.push(account.pubkey.toBase58()); + accum.recipients.push(postTokenBalance?.owner || account.pubkey.toBase58()); } } return accum;