Skip to content

Commit

Permalink
add feature control
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamWuGit committed Jul 31, 2024
1 parent e3799b4 commit d2abb7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zkevm-circuits/src/copy_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,13 @@ impl<F: Field> SubCircuitConfig<F> for CopyCircuitConfig<F> {
is_id_unchange,
is_src_end,
is_word_end,
#[cfg(feature = "dual_bytecode")]
is_first_bytecode_table,
non_pad_non_mask,
tx_table,
rw_table,
bytecode_table,
#[cfg(feature = "dual_bytecode")]
bytecode_table1,
}
}
Expand Down
3 changes: 3 additions & 0 deletions zkevm-circuits/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1763,6 +1763,9 @@ type CopyTableRow<F> = [(Value<F>, &'static str); 8];
#[cfg(feature = "dual_bytecode")]
type CopyCircuitRow<F> = [(Value<F>, &'static str); 11];

#[cfg(not(feature = "dual_bytecode"))]
type CopyCircuitRow<F> = [(Value<F>, &'static str); 10];

/// CopyThread is the state used while generating rows of the copy table.
struct CopyThread<F: Field> {
tag: CopyDataType,
Expand Down

0 comments on commit d2abb7f

Please sign in to comment.