Skip to content

Commit 526ce5f

Browse files
authored
fix: added programId field in TokenBalance type (#3592)
* added programId field in TokenBalance type * updated TokenBalanceResult * linting and testing
1 parent 474c5a9 commit 526ce5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/connection.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,7 @@ export type TokenBalance = {
10501050
accountIndex: number;
10511051
mint: string;
10521052
owner?: string;
1053+
programId?: string;
10531054
uiTokenAmount: TokenAmount;
10541055
};
10551056

@@ -2330,6 +2331,7 @@ const TokenBalanceResult = pick({
23302331
accountIndex: number(),
23312332
mint: string(),
23322333
owner: optional(string()),
2334+
programId: optional(string()),
23332335
uiTokenAmount: TokenAmountResult,
23342336
});
23352337

0 commit comments

Comments
 (0)