stack height parse of enterEntract

This commit is contained in:
thloyi
2025-12-31 16:53:39 +08:00
parent 78d323efd5
commit dbfaa39432
8 changed files with 84 additions and 34 deletions

View File

@@ -219,7 +219,7 @@ func BuyOrSellParser(tx *Tx, instruction Instruction, innerInstructions InnerIns
return nil, increaseOffset(offset), fmt.Errorf("pump create get inner instructions error: %v,offset, %d, %d", err, offset[0], offset[1])
}
if instruction.StackHeight != nil && *instruction.StackHeight > 2 {
for _, innerInstr := range inners {
for _, innerInstr := range innerInstructions.Instructions {
if innerInstr.StackHeight != nil && *innerInstr.StackHeight == *instruction.StackHeight-1 {
entryContract = result.accountList[innerInstr.ProgramIDIndex]
}