Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions zkevm-circuits/src/pi_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ use crate::{
},
util::rlc_be_bytes,
};
use halo2_proofs::circuit::{Cell, RegionIndex};
#[cfg(any(feature = "test", test, feature = "test-circuits"))]
use halo2_proofs::{circuit::SimpleFloorPlanner, plonk::Circuit};
use itertools::Itertools;
Expand Down Expand Up @@ -894,11 +893,7 @@ impl<F: Field> PiCircuitConfig<F> {
for tx_id in 0..self.max_txs {
region.constrain_equal(
chain_id_cell.cell(),
Cell {
region_index: RegionIndex(1), // FIXME: this is not safe
row_offset: tx_id * TX_LEN + CHAIN_ID_OFFSET_IN_TX,
column: self.tx_table.value.into(),
},
tx_value_cells[tx_id * TX_LEN + CHAIN_ID_OFFSET_IN_TX - 1].cell(),
)?;
}

Expand Down