Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit e8082af

Browse files
author
adria0
committed
fix merge
1 parent a0682d4 commit e8082af

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

integration-tests/tests/circuits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async fn test_tx_circuit_block(block_num: u64) {
8585
let txs: Vec<_> = eth_block
8686
.transactions
8787
.iter()
88-
.map(|tx| geth_types::Transaction::from_eth_tx(tx))
88+
.map(geth_types::Transaction::from_eth_tx)
8989
.collect();
9090

9191
let mut rng = ChaCha20Rng::seed_from_u64(2);

zkevm-circuits/src/bytecode_circuit/dev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl<F: Field> Circuit<F> for BytecodeCircuitTester<F> {
4545
config.load(&mut layouter)?;
4646
config.keccak_table.load(
4747
&mut layouter,
48-
self.bytecodes.iter().map(|b| b.bytes.as_slice()),
48+
self.bytecodes.iter().map(|b| b.bytes.clone()),
4949
self.randomness,
5050
)?;
5151
config.assign(&mut layouter, self.size, &self.bytecodes, self.randomness)?;

zkevm-circuits/src/copy_circuit.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,11 +693,13 @@ pub mod dev {
693693
block: Block<F>,
694694
}
695695

696-
impl<F> CopyCircuitTester<F> {
697-
696+
impl<F: Field> CopyCircuitTester<F> {
698697
pub fn new(block: Block<F>) -> Self {
699698
Self { block }
700699
}
700+
pub fn r() -> Expression<F> {
701+
123456u64.expr()
702+
}
701703
}
702704

703705
impl<F: Field> Circuit<F> for CopyCircuitTester<F> {

0 commit comments

Comments
 (0)