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

Commit

Permalink
fix: prevent program ids from being collected
Browse files Browse the repository at this point in the history
  • Loading branch information
oJshua committed Mar 16, 2021
1 parent 880fa5c commit 7832189
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion transaction-status/src/token_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ 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) {
if is_token_program(account_id)
|| transaction.message.program_ids().contains(&account_id)
{
continue;
}

Expand Down

0 comments on commit 7832189

Please sign in to comment.