Skip to content

Commit

Permalink
use world for something
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed Jun 4, 2024
1 parent 5c250df commit 1979769
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/single_instruction_test/into_zk_evm.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::sync::Arc;

use super::{stack::Stack, state_to_zk_evm::vm2_state_to_zk_evm_state, MockWorld};
use crate::{zkevm_opcode_defs::decoding::EncodingModeProduction, VirtualMachine};
use crate::{zkevm_opcode_defs::decoding::EncodingModeProduction, VirtualMachine, World};
use u256::U256;
use zk_evm::{
abstractions::{DecommittmentProcessor, Memory, PrecompilesProcessor, Storage},
aux_structures::PubdataCost,
block_properties::BlockProperties,
reference_impls::event_sink::InMemoryEventSink,
tracing::Tracer,
Expand Down Expand Up @@ -114,12 +115,20 @@ impl Storage for MockWorldWrapper {
fn execute_partial_query(
&mut self,
_: u32,
_query: zk_evm::aux_structures::LogQuery,
mut query: zk_evm::aux_structures::LogQuery,
) -> (
zk_evm::aux_structures::LogQuery,
zk_evm::aux_structures::PubdataCost,
) {
todo!()
if query.rw_flag {
todo!()
} else {
query.read_value = self
.0
.read_storage(query.address, query.key)
.unwrap_or_default();
(query, PubdataCost(0))
}
}

fn start_frame(&mut self, _: zk_evm::aux_structures::Timestamp) {
Expand Down

0 comments on commit 1979769

Please sign in to comment.