From ca4217a4e2756ac63f86cae861766a4d39d3d465 Mon Sep 17 00:00:00 2001 From: jmz <1125378902@qq.com> Date: Wed, 25 Feb 2026 21:27:38 +0800 Subject: [PATCH 1/3] add stackHeight for instruction --- transaction.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transaction.go b/transaction.go index e09699e77..59ed089f9 100644 --- a/transaction.go +++ b/transaction.go @@ -137,6 +137,10 @@ type CompiledInstruction struct { // The program input data encoded in a base-58 string. Data Base58 `json:"data"` + + // Invocation stack height of this instruction. Instruction stack height + // starts at 1 for transaction instructions. + StackHeight uint8 `json:"stackHeight,omitempty"` } func (ci *CompiledInstruction) ResolveInstructionAccounts(message *Message) ([]*AccountMeta, error) { From 2255f55dd3c14202672253d4e6177f4f070308db Mon Sep 17 00:00:00 2001 From: jmz <1125378902@qq.com> Date: Wed, 25 Feb 2026 21:34:08 +0800 Subject: [PATCH 2/3] add stackHeight for instruction --- transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transaction.go b/transaction.go index 59ed089f9..c89064aaf 100644 --- a/transaction.go +++ b/transaction.go @@ -140,7 +140,7 @@ type CompiledInstruction struct { // Invocation stack height of this instruction. Instruction stack height // starts at 1 for transaction instructions. - StackHeight uint8 `json:"stackHeight,omitempty"` + StackHeight uint16 `json:"stackHeight,omitempty"` } func (ci *CompiledInstruction) ResolveInstructionAccounts(message *Message) ([]*AccountMeta, error) { From 70640374b17982fe88b54f53829349468daf7385 Mon Sep 17 00:00:00 2001 From: jmz <1125378902@qq.com> Date: Wed, 18 Mar 2026 12:41:28 +0800 Subject: [PATCH 3/3] Set StackHeight to be of pointer type --- transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transaction.go b/transaction.go index c89064aaf..83b530b43 100644 --- a/transaction.go +++ b/transaction.go @@ -140,7 +140,7 @@ type CompiledInstruction struct { // Invocation stack height of this instruction. Instruction stack height // starts at 1 for transaction instructions. - StackHeight uint16 `json:"stackHeight,omitempty"` + StackHeight *uint16 `json:"stackHeight,omitempty"` } func (ci *CompiledInstruction) ResolveInstructionAccounts(message *Message) ([]*AccountMeta, error) {