Skip to content

Commit

Permalink
Remove finish_batch
Browse files Browse the repository at this point in the history
As it was not related to this pr
  • Loading branch information
MarcosNicolau committed Aug 28, 2024
1 parent 19cc907 commit 81cca13
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions core/lib/multivm/src/versions/era_vm/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -701,30 +701,6 @@ impl<S: ReadStorage + 'static> VmInterface for Vm<S> {
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<S: ReadStorage + 'static> VmInterfaceHistoryEnabled for Vm<S> {
Expand Down

0 comments on commit 81cca13

Please sign in to comment.