From b0365ca0d0a3552733cca12c419db54d481f7191 Mon Sep 17 00:00:00 2001 From: Marcos Nicolau Date: Wed, 28 Aug 2024 10:14:29 -0300 Subject: [PATCH] Remove finish_batch As it was not related to this pr --- core/lib/multivm/src/versions/era_vm/vm.rs | 32 ++-------------------- 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/core/lib/multivm/src/versions/era_vm/vm.rs b/core/lib/multivm/src/versions/era_vm/vm.rs index 3d04bf07637..ebeb2ee331b 100644 --- a/core/lib/multivm/src/versions/era_vm/vm.rs +++ b/core/lib/multivm/src/versions/era_vm/vm.rs @@ -33,11 +33,8 @@ use super::{ logs::IntoSystemLog, snapshot::VmSnapshot, tracers::{ - dispatcher::TracerDispatcher, - manager::VmTracerManager, - pubdata_tracer::PubdataTracer, - refunds_tracer::{Refunds, RefundsTracer}, - traits::VmTracer, + dispatcher::TracerDispatcher, manager::VmTracerManager, pubdata_tracer::PubdataTracer, + refunds_tracer::RefundsTracer, traits::VmTracer, }, transaction::ParallelTransaction, }; @@ -47,7 +44,6 @@ use crate::{ tracer::{TracerExecutionStatus, TracerExecutionStopReason}, Halt, TxRevertReason, VmFactory, VmInterface, VmInterfaceHistoryEnabled, VmRevertReason, }, - vm_1_4_1::FinishedL1Batch, vm_latest::{ constants::{ get_result_success_first_slot, get_vm_hook_position, get_vm_hook_start_position_latest, @@ -701,30 +697,6 @@ impl VmInterface for Vm { fn gas_remaining(&self) -> u32 { self.inner.execution.current_frame().unwrap().gas_left.0 } - - fn finish_batch(&mut self) -> FinishedL1Batch { - let result = self.execute(VmExecutionMode::Batch); - let execution_state = self.get_current_execution_state(); - let bootloader_memory = self.get_bootloader_memory(); - - FinishedL1Batch { - block_tip_execution_result: result, - final_execution_state: execution_state, - final_bootloader_memory: Some(bootloader_memory), - pubdata_input: Some( - self.bootloader_state - .get_pubdata_information() - .clone() - .build_pubdata(false), - ), - state_diffs: Some( - self.bootloader_state - .get_pubdata_information() - .state_diffs - .to_vec(), - ), - } - } } impl VmInterfaceHistoryEnabled for Vm {