Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
fix: skip token program in balance query
Browse files Browse the repository at this point in the history
  • Loading branch information
oJshua committed Mar 16, 2021
1 parent 470a60a commit 880fa5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transaction-status/src/token_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ pub fn collect_token_balances(
let mut transaction_balances: Vec<TransactionTokenBalance> = vec![];
if has_token_program {
for (index, account_id) in account_keys.iter().enumerate() {
if is_token_program(account_id) {
continue;
}

if let Some((mint, ui_token_amount)) =
collect_token_balance_from_account(&bank, account_id, &mut mint_decimals)
{
Expand Down

0 comments on commit 880fa5c

Please sign in to comment.