From 70202bb25f90b723809bd99cd30e8213003f9b25 Mon Sep 17 00:00:00 2001 From: ChihChengLiang Date: Wed, 31 Jan 2024 17:37:48 +0800 Subject: [PATCH] fixed different places calling to evm circuit configure --- zkevm-circuits/src/bin/stats/main.rs | 3 ++- zkevm-circuits/src/evm_circuit.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/zkevm-circuits/src/bin/stats/main.rs b/zkevm-circuits/src/bin/stats/main.rs index fdd2066f33..73514d35cc 100644 --- a/zkevm-circuits/src/bin/stats/main.rs +++ b/zkevm-circuits/src/bin/stats/main.rs @@ -1,3 +1,4 @@ +use bus_mapping::circuit_input_builder::FeatureConfig; use cli_table::{print_stdout, Cell, Style, Table}; use eth_types::{bytecode, evm_types::OpcodeId, ToWord}; use halo2_proofs::{ @@ -113,7 +114,7 @@ fn copy_states_stats() { /// cell consumers of each EVM Cell type. fn get_exec_steps_occupancy() { let mut meta = ConstraintSystem::::default(); - let circuit = EvmCircuit::configure(&mut meta); + let circuit = EvmCircuit::configure_with_params(&mut meta, FeatureConfig::default()); let report = circuit.0.execution.instrument().clone().analyze(); macro_rules! gen_report { diff --git a/zkevm-circuits/src/evm_circuit.rs b/zkevm-circuits/src/evm_circuit.rs index b888774156..0c36dfe4e1 100644 --- a/zkevm-circuits/src/evm_circuit.rs +++ b/zkevm-circuits/src/evm_circuit.rs @@ -315,7 +315,7 @@ pub(crate) mod cached { static ref CACHE: Cache = { let mut meta = ConstraintSystem::::default(); // Cached EVM circuit is configured with Mainnet FeatureConfig - let config = EvmCircuit::::configure(&mut meta); + let config = EvmCircuit::::configure_with_params(&mut meta, FeatureConfig::default()); Cache { cs: meta, config } }; }