diff --git a/packages/library-legacy/src/connection.ts b/packages/library-legacy/src/connection.ts index d3f9c9ff44f0..d02258d9cca9 100644 --- a/packages/library-legacy/src/connection.ts +++ b/packages/library-legacy/src/connection.ts @@ -1004,17 +1004,21 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext( }), ), ), - innerInstructions: optional(nullable(array( - pick({ - index: number(), - instructions: array( - union([ - ParsedInstructionStruct, - PartiallyDecodedInstructionStruct, - ]), + innerInstructions: optional( + nullable( + array( + pick({ + index: number(), + instructions: array( + union([ + ParsedInstructionStruct, + PartiallyDecodedInstructionStruct, + ]), + ), + }), ), - }), - ))), + ), + ), }), ); @@ -5705,7 +5709,11 @@ export class Connection { config.commitment = this.commitment; } - if (configOrSigners && typeof configOrSigners === 'object' && 'innerInstructions' in configOrSigners) { + if ( + configOrSigners && + typeof configOrSigners === 'object' && + 'innerInstructions' in configOrSigners + ) { config.innerInstructions = configOrSigners.innerInstructions; } @@ -5799,7 +5807,11 @@ export class Connection { config.sigVerify = true; } - if (configOrSigners && typeof configOrSigners === 'object' && 'innerInstructions' in configOrSigners) { + if ( + configOrSigners && + typeof configOrSigners === 'object' && + 'innerInstructions' in configOrSigners + ) { config.innerInstructions = configOrSigners.innerInstructions; }