Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Format source code
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Jun 24, 2024
1 parent 5f7ecc3 commit ad23ff4
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions packages/library-legacy/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]),
),
}),
),
}),
))),
),
),
}),
);

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit ad23ff4

Please sign in to comment.