Skip to content

Commit

Permalink
fix: added programId field in TokenBalance type (#3592)
Browse files Browse the repository at this point in the history
* added programId field in TokenBalance type

* updated TokenBalanceResult

* linting and testing
  • Loading branch information
shivaji43 authored Nov 20, 2024
1 parent 474c5a9 commit 526ce5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,7 @@ export type TokenBalance = {
accountIndex: number;
mint: string;
owner?: string;
programId?: string;
uiTokenAmount: TokenAmount;
};

Expand Down Expand Up @@ -2330,6 +2331,7 @@ const TokenBalanceResult = pick({
accountIndex: number(),
mint: string(),
owner: optional(string()),
programId: optional(string()),
uiTokenAmount: TokenAmountResult,
});

Expand Down

0 comments on commit 526ce5f

Please sign in to comment.