Skip to content

Commit d0be13c

Browse files
committed
fix merge
1 parent e30dec7 commit d0be13c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

zkevm-circuits/src/copy_circuit.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use crate::{
3939
evm_circuit::util::{constraint_builder::BaseConstraintBuilder, math_gadget::LtGadget},
4040
table::{
4141
BytecodeFieldTag, BytecodeTable, CopyTable, LookupTable, RwTable, RwTableTag,
42-
TxContextFieldTag, TxTable, U8Table,
42+
TxContextFieldTag, TxTable, U8Table, UXTable,
4343
},
4444
util::{Challenges, SubCircuit, SubCircuitConfig},
4545
witness,
@@ -120,7 +120,7 @@ pub struct CopyCircuitConfig<F> {
120120
/// BytecodeTable
121121
pub bytecode_table: BytecodeTable,
122122
/// u8 lookup Table
123-
pub u8_table: U8Table,
123+
pub u8_table: UXTable<8>,
124124
}
125125

126126
/// Circuit configuration arguments
@@ -138,7 +138,7 @@ pub struct CopyCircuitConfigArgs<F: Field> {
138138
/// Challenges
139139
pub challenges: Challenges<Expression<F>>,
140140
/// u8 lookup Table
141-
pub u8_table: U8Table,
141+
pub u8_table: UXTable<8>,
142142
}
143143

144144
impl<F: Field> SubCircuitConfig<F> for CopyCircuitConfig<F> {
@@ -186,7 +186,7 @@ impl<F: Field> SubCircuitConfig<F> for CopyCircuitConfig<F> {
186186
|meta| meta.query_selector(q_step),
187187
|meta| meta.query_advice(lhs_base, CURRENT) + idx.expr(),
188188
|meta| meta.query_advice(rhs, CURRENT),
189-
u8_table.into(),
189+
u8_table.col,
190190
)
191191
})
192192
};

zkevm-circuits/src/copy_circuit/dev.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pub use super::CopyCircuit;
22

33
use crate::{
44
copy_circuit::{CopyCircuitConfig, CopyCircuitConfigArgs},
5-
table::{BytecodeTable, CopyTable, RwTable, TxTable, U8Table},
5+
table::{BytecodeTable, CopyTable, RwTable, TxTable, U8Table, UXTable},
66
util::{Challenges, SubCircuit, SubCircuitConfig},
77
};
88
use eth_types::Field;
@@ -29,7 +29,7 @@ impl<F: Field> Circuit<F> for CopyCircuit<F> {
2929
let copy_table = CopyTable::construct(meta, q_enable);
3030
let challenges = Challenges::construct(meta);
3131
let challenge_exprs = challenges.exprs(meta);
32-
let u8_table = U8Table::construct(meta);
32+
let u8_table = UXTable::construct(meta);
3333

3434
(
3535
CopyCircuitConfig::new(

zkevm-circuits/src/super_circuit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ impl SubCircuitConfig<Fr> for SuperCircuitConfig<Fr> {
310310
copy_table,
311311
q_enable: q_copy_table,
312312
challenges: challenges_expr.clone(),
313-
u8_table,
313+
u8_table: ux8_table,
314314
},
315315
);
316316
log_circuit_info(meta, "copy circuit");

0 commit comments

Comments
 (0)