Skip to content

Commit

Permalink
fix: display solana wallet addresses instead of ATA in operations
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhd committed Jan 11, 2024
1 parent d41480a commit 9b341e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9b341e3

Please sign in to comment.