diff --git a/parser.go b/parser.go index 9bc2d35..c4bca28 100644 --- a/parser.go +++ b/parser.go @@ -177,8 +177,13 @@ func (tx *Tx) Parser() error { tx.Swaps = append(tx.Swaps, swap) } // tx.Swaps = append(tx.Swaps, swaps...) - j = int(offset[1]) - ii = int(offset[0]) + if ii == int(offset[0]) && j == int(offset[1]) { + j = j + 1 + } else { + j = int(offset[1]) + ii = int(offset[0]) + } + } else if p, exists := actionPrograms[innerProgramAccount]; exists { offset, err := p(tx, innerInstr, innersMap[i], [2]uint{uint(i), uint(j)}) if err != nil {