fix errTx mev and cu

This commit is contained in:
thloyi
2026-02-27 17:07:49 +08:00
parent b0d4342fa2
commit 3d447ef2e8

View File

@@ -129,7 +129,7 @@ func (tx *Tx) Parser() error {
tx.Swaps = swaps
}
for i, instr := range tx.rawTx.Transaction.Message.Instructions {
if p, exists := actionPrograms[programAccount]; exists {
if p, exists := actionPrograms[accountList[instr.ProgramIDIndex]]; exists {
_, err := p(tx, instr, InnerInstructions{}, [2]uint{uint(i), uint(0)})
if err != nil {
if errors.Is(err, InstructionIgnoredError) {