Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo committed Nov 7, 2023
1 parent aaf24a9 commit 466742d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions core/lib/multivm/src/versions/vm_latest/tests/l2_blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ use crate::vm_latest::utils::l2_blocks::get_l2_block_hash_key;
use crate::vm_latest::{HistoryEnabled, Vm};
use crate::HistoryMode;
use zk_evm_1_4_0::aux_structures::Timestamp;
use zksync_state::{ReadStorage, WriteStorage};
use zksync_system_constants::{
CURRENT_VIRTUAL_BLOCK_INFO_POSITION, REQUIRED_L1_TO_L2_GAS_PER_PUBDATA_BYTE,
};
use zksync_types::block::{pack_block_info, unpack_block_info};
use zksync_state::WriteStorage;
use zksync_system_constants::REQUIRED_L1_TO_L2_GAS_PER_PUBDATA_BYTE;
use zksync_types::block::pack_block_info;
use zksync_types::{
block::{legacy_miniblock_hash, miniblock_hash},
AccountTreeId, Execute, ExecuteTransactionCommon, L1BatchNumber, L1TxCommonData,
Expand Down
4 changes: 2 additions & 2 deletions core/lib/multivm/src/versions/vm_latest/tests/rollbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use zksync_contracts::test_contracts::LoadnextContractExecutionParams;
use zksync_state::WriteStorage;
use zksync_types::{get_nonce_key, Execute, U256};

use crate::interface::dyn_tracers::vm_1_3_3::DynTracer;
use crate::interface::dyn_tracers::vm_1_4_0::DynTracer;
use crate::interface::tracer::{TracerExecutionStatus, TracerExecutionStopReason};
use crate::interface::{TxExecutionMode, VmExecutionMode, VmInterface, VmInterfaceHistoryEnabled};
use crate::vm_latest::tests::tester::{
Expand Down Expand Up @@ -158,7 +158,7 @@ struct MaxRecursionTracer {

/// Tracer responsible for calculating the number of storage invocations and
/// stopping the VM execution if the limit is reached.
impl<S, H: HistoryMode> DynTracer<S, SimpleMemory<H>> for MaxRecursionTracer {}
impl<S: WriteStorage, H: HistoryMode> DynTracer<S, SimpleMemory<H>> for MaxRecursionTracer {}

impl<S: WriteStorage, H: HistoryMode> VmTracer<S, H> for MaxRecursionTracer {
fn finish_cycle(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ pub(crate) struct VmInstanceInnerState<H: HistoryMode> {

impl<S: WriteStorage, H: CommonHistoryMode> Vm<S, H> {
// Dump inner state of the VM.
pub(crate) fn dump_inner_state(
&self,
) -> VmInstanceInnerState<H::VmVirtualBlocksRefundsEnhancement> {
pub(crate) fn dump_inner_state(&self) -> VmInstanceInnerState<H::VmBoojumIntegration> {
let event_sink = self.state.event_sink.clone();
let precompile_processor_state = PrecompileProcessorTestInnerState {
timestamp_history: self.state.precompiles_processor.timestamp_history.clone(),
Expand Down

0 comments on commit 466742d

Please sign in to comment.