From 1e276e8bd29da400954697fc79d2d18d2ffedd4e Mon Sep 17 00:00:00 2001 From: thloyi Date: Thu, 12 Mar 2026 13:48:57 +0800 Subject: [PATCH] [tx] swap inner idx --- parser.go | 1 + tx.go | 1 + 2 files changed, 2 insertions(+) diff --git a/parser.go b/parser.go index aea992c..e2453d3 100644 --- a/parser.go +++ b/parser.go @@ -224,6 +224,7 @@ func (tx *Tx) Parser() error { } } swap.InstrIdx = uint8(i) + swap.InnerIdx = uint8(j) tx.Swaps = append(tx.Swaps, swap) } // tx.Swaps = append(tx.Swaps, swaps...) diff --git a/tx.go b/tx.go index cca598c..8cc0182 100644 --- a/tx.go +++ b/tx.go @@ -13,6 +13,7 @@ type Swap struct { TxIndex int InstrIdx uint8 + InnerIdx uint8 Pool solana.PublicKey BaseMint solana.PublicKey