From db1965f6025ab6009809f23b463cb9dd5e951c2f Mon Sep 17 00:00:00 2001 From: shivaji43 Date: Mon, 18 Nov 2024 21:24:16 +0530 Subject: [PATCH 1/3] added programId field in TokenBalance type --- src/connection.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connection.ts b/src/connection.ts index de07c83a68e2..18a390e1e40c 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -1050,6 +1050,7 @@ export type TokenBalance = { accountIndex: number; mint: string; owner?: string; + programId?:string; uiTokenAmount: TokenAmount; }; From b0cf63427d1f22e4dc0352264a37d26c05af5b79 Mon Sep 17 00:00:00 2001 From: shivaji43 Date: Tue, 19 Nov 2024 08:22:40 +0530 Subject: [PATCH 2/3] updated TokenBalanceResult --- src/connection.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connection.ts b/src/connection.ts index 18a390e1e40c..d4f33e4da753 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -2331,6 +2331,7 @@ const TokenBalanceResult = pick({ accountIndex: number(), mint: string(), owner: optional(string()), + programId:optional(string()), uiTokenAmount: TokenAmountResult, }); From ca9049f981e45081f9dab64d41583b1117ff969a Mon Sep 17 00:00:00 2001 From: shivaji43 Date: Tue, 19 Nov 2024 23:49:00 +0530 Subject: [PATCH 3/3] linting and testing --- src/connection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connection.ts b/src/connection.ts index d4f33e4da753..950a4a808f21 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -1050,7 +1050,7 @@ export type TokenBalance = { accountIndex: number; mint: string; owner?: string; - programId?:string; + programId?: string; uiTokenAmount: TokenAmount; }; @@ -2331,7 +2331,7 @@ const TokenBalanceResult = pick({ accountIndex: number(), mint: string(), owner: optional(string()), - programId:optional(string()), + programId: optional(string()), uiTokenAmount: TokenAmountResult, });