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 Feb 9, 2024
1 parent 01d68d7 commit 075a3ae
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 075a3ae

Please sign in to comment.