From 8c9ee5fc54853f593e93d88033926479df8f1f50 Mon Sep 17 00:00:00 2001 From: steveluscher Date: Fri, 28 Jun 2024 20:57:16 +0000 Subject: [PATCH] Don't widen the type of `parsed` to `any` when parsing the server response, because that makes it optional on the result --- packages/library-legacy/src/connection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/library-legacy/src/connection.ts b/packages/library-legacy/src/connection.ts index b57caa5a6b4..a0fcd2e033d 100644 --- a/packages/library-legacy/src/connection.ts +++ b/packages/library-legacy/src/connection.ts @@ -967,7 +967,7 @@ export type SimulatedTransactionResponse = { const ParsedInstructionStruct = pick({ program: string(), programId: PublicKeyFromString, - parsed: any(), + parsed: unknown(), }); const PartiallyDecodedInstructionStruct = pick({ @@ -1208,7 +1208,7 @@ export type ParsedInstruction = { /** ID of the program for this instruction */ programId: PublicKey; /** Parsed instruction info */ - parsed?: any; + parsed: any; }; /**