[tx] swap inner idx

This commit is contained in:
thloyi
2026-03-12 13:48:57 +08:00
parent eb2bde98ac
commit 1e276e8bd2
2 changed files with 2 additions and 0 deletions

View File

@@ -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...)

1
tx.go
View File

@@ -13,6 +13,7 @@ type Swap struct {
TxIndex int
InstrIdx uint8
InnerIdx uint8
Pool solana.PublicKey
BaseMint solana.PublicKey