Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
permutable
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 committed Jun 29, 2023
1 parent d58d793 commit 531a020
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zkevm-circuits/src/circuit_tools/cell_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ pub struct CellConfig<C: CellType> {
pub cell_type: C,
pub num_columns: usize,
pub phase: u8,
pub is_permute: bool,
pub permutable: bool,
}

impl<C: CellType> From<(C, usize, u8, bool)> for CellConfig<C> {
fn from((cell_type, num_columns, phase, is_permute): (C, usize, u8, bool)) -> Self {
fn from((cell_type, num_columns, phase, permutable): (C, usize, u8, bool)) -> Self {
Self {
cell_type,
num_columns,
phase,
is_permute,
permutable,
}
}
}
Expand All @@ -138,7 +138,7 @@ impl<C: CellType> CellConfig<C> {
};
columns.push(tmp);
}
if self.is_permute {
if self.permutable {
let _ = columns
.iter()
.map(|c| meta.enable_equality(*c))
Expand Down

0 comments on commit 531a020

Please sign in to comment.