Skip to content

Commit

Permalink
add stack height to inner instruction (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkaluzny authored Oct 10, 2024
1 parent 1af28d5 commit d337fef
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rpc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,15 @@ type InnerInstruction struct {
Index uint16 `json:"index"`

// Ordered list of inner program instructions that were invoked during a single transaction instruction.
Instructions []solana.CompiledInstruction `json:"instructions"`
Instructions []CompiledInnerInstruction `json:"instructions"`
}

type CompiledInnerInstruction struct {
solana.CompiledInstruction

// Invocation stack height of this instruction. Instruction stack height
// starts at 1 for transaction instructions.
StackHeight uint8 `json:"stackHeight"`
}

// Ok interface{} `json:"Ok"` // <null> Transaction was successful
Expand Down

0 comments on commit d337fef

Please sign in to comment.