From 26526fc99270b785387baab32fd56d26c7693cb2 Mon Sep 17 00:00:00 2001 From: sirasistant Date: Wed, 11 Oct 2023 14:24:31 +0000 Subject: [PATCH] fix: Determinism of fallback transformer --- acvm-repo/acvm/src/compiler/transformers/fallback.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/acvm-repo/acvm/src/compiler/transformers/fallback.rs b/acvm-repo/acvm/src/compiler/transformers/fallback.rs index d3e4ea506f8..06dfc84a798 100644 --- a/acvm-repo/acvm/src/compiler/transformers/fallback.rs +++ b/acvm-repo/acvm/src/compiler/transformers/fallback.rs @@ -60,7 +60,11 @@ impl FallbackTransformer { } Ok(( - Circuit { current_witness_index: witness_idx, opcodes: acir_supported_opcodes, ..acir }, + Circuit { + current_witness_index: witness_idx - 1, + opcodes: acir_supported_opcodes, + ..acir + }, new_opcode_positions, )) }