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 15, 2024
1 parent 0ed3598 commit 704a865
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 704a865

Please sign in to comment.