Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed Jun 4, 2024
1 parent f0306ab commit 6f71cb7
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/single_instruction_test/into_zk_evm.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
use std::sync::Arc;

use super::{
mock_array::MockRead, stack::Stack, state_to_zk_evm::vm2_state_to_zk_evm_state, MockWorld,
};
use super::{stack::Stack, state_to_zk_evm::vm2_state_to_zk_evm_state, MockWorld};
use crate::{zkevm_opcode_defs::decoding::EncodingModeProduction, VirtualMachine};
use u256::U256;
use zk_evm::{
abstractions::{DecommittmentProcessor, Memory, PrecompilesProcessor, Storage},
aux_structures::MemoryLocation,
block_properties::BlockProperties,
reference_impls::event_sink::InMemoryEventSink,
tracing::Tracer,
Expand Down Expand Up @@ -82,7 +79,7 @@ impl Memory for MockMemory {
fn specialized_code_query(
&mut self,
_: u32,
query: zk_evm::aux_structures::MemoryQuery,
_query: zk_evm::aux_structures::MemoryQuery,
) -> zk_evm::aux_structures::MemoryQuery {
todo!()
}
Expand All @@ -109,15 +106,15 @@ impl Storage for MockWorldWrapper {
fn get_access_refund(
&mut self, // to avoid any hacks inside, like prefetch
_: u32,
partial_query: &zk_evm::aux_structures::LogQuery,
_partial_query: &zk_evm::aux_structures::LogQuery,
) -> zk_evm::abstractions::StorageAccessRefund {
todo!()
}

fn execute_partial_query(
&mut self,
_: u32,
query: zk_evm::aux_structures::LogQuery,
_query: zk_evm::aux_structures::LogQuery,
) -> (
zk_evm::aux_structures::LogQuery,
zk_evm::aux_structures::PubdataCost,
Expand All @@ -129,7 +126,7 @@ impl Storage for MockWorldWrapper {
todo!()
}

fn finish_frame(&mut self, _: zk_evm::aux_structures::Timestamp, panicked: bool) {
fn finish_frame(&mut self, _: zk_evm::aux_structures::Timestamp, _panicked: bool) {
todo!()
}

Expand All @@ -145,16 +142,16 @@ impl DecommittmentProcessor for MockDecommitter {
fn prepare_to_decommit(
&mut self,
_: u32,
partial_query: zk_evm::aux_structures::DecommittmentQuery,
_partial_query: zk_evm::aux_structures::DecommittmentQuery,
) -> anyhow::Result<zk_evm::aux_structures::DecommittmentQuery> {
todo!()
}

fn decommit_into_memory<M: zk_evm::abstractions::Memory>(
&mut self,
_: u32,
partial_query: zk_evm::aux_structures::DecommittmentQuery,
memory: &mut M,
_partial_query: zk_evm::aux_structures::DecommittmentQuery,
_memory: &mut M,
) -> anyhow::Result<Option<Vec<zk_evm::ethereum_types::U256>>> {
todo!()
}
Expand Down

0 comments on commit 6f71cb7

Please sign in to comment.