Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Oct 22, 2024
1 parent b22e77c commit f8c6863
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/lib/vm_interface/src/types/inputs/execution_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ pub enum InspectExecutionMode {
impl From<InspectExecutionMode> for VmExecutionMode {
fn from(mode: InspectExecutionMode) -> Self {
match mode {
InspectExecutionMode::Bootloader => VmExecutionMode::Bootloader,
InspectExecutionMode::OneTx => VmExecutionMode::OneTx,
InspectExecutionMode::Bootloader => Self::Bootloader,
InspectExecutionMode::OneTx => Self::OneTx,
}
}
}
2 changes: 1 addition & 1 deletion core/lib/vm_interface/src/utils/shadow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ where
fn finish_batch(&mut self, pubdata_builder: Rc<dyn PubdataBuilder>) -> FinishedL1Batch {
let main_batch = self.main.finish_batch(pubdata_builder.clone());
if let Some(shadow) = self.shadow.get_mut() {
let shadow_batch = shadow.vm.finish_batch(pubdata_builder.clone());
let shadow_batch = shadow.vm.finish_batch(pubdata_builder);
let mut errors = DivergenceErrors::new();
errors.check_results_match(
&main_batch.block_tip_execution_result,
Expand Down
8 changes: 4 additions & 4 deletions core/node/commitment_generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,11 @@ impl CommitmentGenerator {
vec![Default::default(); num_blobs_required(&protocol_version)]
};

let mut connection = self
.connection_pool
.connection_tagged("commitment_generator")
.await?;
let aggregation_root = if protocol_version.is_pre_gateway() {
let mut connection = self
.connection_pool
.connection_tagged("commitment_generator")
.await?;
read_aggregation_root(&mut connection, l1_batch_number).await?
} else {
H256::zero()
Expand Down

0 comments on commit f8c6863

Please sign in to comment.