Skip to content

Commit

Permalink
fix: RangeCircuitBuilder::config remember lookup_bits
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Aug 17, 2023
1 parent 7100c23 commit 49aeedd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions halo2-base/src/gates/builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,9 @@ impl<F: ScalarField> RangeCircuitBuilder<F> {
/// Auto-configures the circuit configuration parameters. Mutates the configuration parameters of the circuit
/// and also returns a copy of the new configuration.
pub fn config(&mut self, minimum_rows: Option<usize>) -> BaseConfigParams {
let lookup_bits = self.0.config_params.lookup_bits;
self.0.config_params = self.0.builder.borrow().config(self.0.config_params.k, minimum_rows);
self.0.config_params.lookup_bits = lookup_bits;
self.0.config_params.clone()
}
}
Expand Down

0 comments on commit 49aeedd

Please sign in to comment.