From f1a9dddaf6f59ecd25de2af7c35bbc8f4e786dc3 Mon Sep 17 00:00:00 2001 From: Joe Caulfield Date: Wed, 8 Jan 2025 10:23:54 +0800 Subject: [PATCH] convert the rest --- src/connection.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/connection.ts b/src/connection.ts index 0500da537ed..a9308a32c38 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -947,7 +947,7 @@ export type SimulatedTransactionAccountInfo = { /** Optional data assigned to the account */ data: string[]; /** Optional rent epoch info for account */ - rentEpoch?: number; + rentEpoch?: bigint; }; export type TransactionReturnDataEncoding = 'base64'; @@ -1009,7 +1009,7 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext( owner: string(), lamports: number(), data: array(string()), - rentEpoch: optional(number()), + rentEpoch: optional(bigint()), }), ), ), @@ -1873,7 +1873,7 @@ const GetTokenAccountsByOwner = jsonRpcResultAndContext( owner: PublicKeyFromString, lamports: number(), data: BufferFromRawAccountData, - rentEpoch: number(), + rentEpoch: bigint(), }), }), ), @@ -1897,7 +1897,7 @@ const GetParsedTokenAccountsByOwner = jsonRpcResultAndContext( owner: PublicKeyFromString, lamports: number(), data: ParsedAccountDataResult, - rentEpoch: number(), + rentEpoch: bigint(), }), }), ), @@ -1962,7 +1962,7 @@ const ParsedAccountInfoResult = pick({ owner: PublicKeyFromString, lamports: number(), data: ParsedOrRawAccountData, - rentEpoch: number(), + rentEpoch: bigint(), }); const KeyedParsedAccountInfoResult = pick({ @@ -2880,7 +2880,7 @@ export type AccountInfo = { /** Optional data assigned to the account */ data: T; /** Optional rent epoch info for account */ - rentEpoch?: number; + rentEpoch?: bigint; }; /**