From 31082b013ae2f5d48ee76f060eb6507cc27bcee0 Mon Sep 17 00:00:00 2001 From: Joe Caulfield Date: Fri, 28 Jun 2024 15:27:41 -0500 Subject: [PATCH] refactor(experimental): type reconciliation: `GetLatestBlockhashApi` --- packages/rpc-api/src/getLatestBlockhash.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/rpc-api/src/getLatestBlockhash.ts b/packages/rpc-api/src/getLatestBlockhash.ts index a9ff81df0e26..30165d6fc442 100644 --- a/packages/rpc-api/src/getLatestBlockhash.ts +++ b/packages/rpc-api/src/getLatestBlockhash.ts @@ -1,7 +1,7 @@ import type { RpcApiMethods } from '@solana/rpc-spec'; import type { Blockhash, Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; -type GetLatestBlockhashApiResponse = SolanaRpcResponse<{ +type GetLatestBlockhashApiResponse = Readonly<{ /** a Hash as base-58 encoded string */ blockhash: Blockhash; /** last block height at which the blockhash will be valid */ @@ -17,5 +17,5 @@ export interface GetLatestBlockhashApi extends RpcApiMethods { commitment?: Commitment; minContextSlot?: Slot; }>, - ): GetLatestBlockhashApiResponse; + ): SolanaRpcResponse; }