fix entryContract axiom

This commit is contained in:
thloyi
2026-02-09 16:09:31 +08:00
parent 9ece4aebb9
commit 70d91fdd30
6 changed files with 13 additions and 6 deletions

View File

@@ -249,6 +249,7 @@ func ammBuyParser(tx *Tx, instruction Instruction, innerInstructions InnerInstru
for _, innerInstr := range innerInstructions.Instructions {
if innerInstr.StackHeight != nil && *innerInstr.StackHeight == *instruction.StackHeight-1 {
entryContract = result.accountList[innerInstr.ProgramIDIndex]
break
}
}
}
@@ -367,6 +368,7 @@ func ammSellParser(tx *Tx, instruction Instruction, innerInstructions InnerInstr
for _, innerInstr := range innerInstructions.Instructions {
if innerInstr.StackHeight != nil && *innerInstr.StackHeight == *instruction.StackHeight-1 {
entryContract = result.accountList[innerInstr.ProgramIDIndex]
break
}
}
}