Skip to content

Commit

Permalink
fix: Determinism of fallback transformer (#3100)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant authored and TomAFrench committed Oct 12, 2023
1 parent 6d1bf77 commit e8fc701
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 e8fc701

Please sign in to comment.