From ba46ce11717456f2bb013371608e6eb9ed1ae5d2 Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Wed, 4 Oct 2023 16:18:50 -0700 Subject: [PATCH] refactor(experimental): correct the return type of `getSignatureStatuses` (#1677) --- packages/rpc-core/src/rpc-methods/getSignatureStatuses.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/rpc-core/src/rpc-methods/getSignatureStatuses.ts b/packages/rpc-core/src/rpc-methods/getSignatureStatuses.ts index bc79d96fd0e0..2f595efa182c 100644 --- a/packages/rpc-core/src/rpc-methods/getSignatureStatuses.ts +++ b/packages/rpc-core/src/rpc-methods/getSignatureStatuses.ts @@ -12,7 +12,7 @@ type TransactionStatusErr = Readonly<{ Err: TransactionError; }>; -type GetSignatureStatusesBase = Readonly<{ +type SignatureStatusResult = Readonly<{ /** * Number of blocks since signature confirmation, null if rooted, * as well as finalized by a supermajority of the cluster @@ -31,7 +31,9 @@ type GetSignatureStatusesBase = Readonly<{ * @deprecated Transaction status */ status: TransactionStatusOk | TransactionStatusErr; -}> | null; +}>; + +type GetSignatureStatusesBase = ReadonlyArray; type GetSignatureStatusesApiResponse = RpcResponse;