Skip to content

Commit

Permalink
refactor(experimental): correct the return type of `getSignatureStatu…
Browse files Browse the repository at this point in the history
…ses` (#1677)
  • Loading branch information
steveluscher authored Oct 4, 2023
1 parent 2d7ea5f commit ba46ce1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/rpc-core/src/rpc-methods/getSignatureStatuses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,7 +31,9 @@ type GetSignatureStatusesBase = Readonly<{
* @deprecated Transaction status
*/
status: TransactionStatusOk | TransactionStatusErr;
}> | null;
}>;

type GetSignatureStatusesBase = ReadonlyArray<SignatureStatusResult | null>;

type GetSignatureStatusesApiResponse = RpcResponse<GetSignatureStatusesBase>;

Expand Down

0 comments on commit ba46ce1

Please sign in to comment.