Skip to content

Commit 12daad1

Browse files
authored
fix: Determinism of fallback transformer (#3100)
1 parent c48251e commit 12daad1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

acvm-repo/acvm/src/compiler/transformers/fallback.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ impl FallbackTransformer {
6060
}
6161

6262
Ok((
63-
Circuit { current_witness_index: witness_idx, opcodes: acir_supported_opcodes, ..acir },
63+
Circuit {
64+
current_witness_index: witness_idx - 1,
65+
opcodes: acir_supported_opcodes,
66+
..acir
67+
},
6468
new_opcode_positions,
6569
))
6670
}

0 commit comments

Comments
 (0)