From d337fefc166d579e2575628c047ec9dcb0f741df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Ka=C5=82u=C5=BCny?= Date: Thu, 10 Oct 2024 19:07:45 +0200 Subject: [PATCH] add stack height to inner instruction (#227) --- rpc/types.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rpc/types.go b/rpc/types.go index e36b93c9..611985bf 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -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"` // Transaction was successful