Skip to content

Commit

Permalink
fix: Determinism of fallback transformer (noir-lang#3100)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant authored and Sakapoi committed Oct 19, 2023
1 parent 7ec48c7 commit 9168782
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion acvm-repo/acvm/src/compiler/transformers/fallback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
))
}
Expand Down

0 comments on commit 9168782

Please sign in to comment.