Skip to content

Commit

Permalink
implemented superstruct validation
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaji43 committed Nov 25, 2024
1 parent 7aa9a47 commit 2965d8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2554,6 +2554,7 @@ const GetConfirmedBlockRpcResult = jsonRpcResult(
),
rewards: optional(array(RewardsResult)),
blockTime: nullable(number()),
blockHeight: nullable(number()),
}),
),
);
Expand All @@ -2569,6 +2570,7 @@ const GetBlockSignaturesRpcResult = jsonRpcResult(
parentSlot: number(),
signatures: array(string()),
blockTime: nullable(number()),
blockHeight: nullable(number()),
}),
),
);
Expand Down

0 comments on commit 2965d8c

Please sign in to comment.