From 46da4c7255b5fec2b92074da1ea1223cdc68d440 Mon Sep 17 00:00:00 2001 From: Vaclav Barta Date: Thu, 20 Jun 2024 15:40:18 +0200 Subject: [PATCH] reformatted --- src/node/in_memory_ext.rs | 4 +++- src/utils.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/node/in_memory_ext.rs b/src/node/in_memory_ext.rs index f1b624cf..2cb10ecb 100644 --- a/src/node/in_memory_ext.rs +++ b/src/node/in_memory_ext.rs @@ -305,7 +305,9 @@ impl InMemoryNo tracing::info!("set code for address {address:#x}"); let hashcode = bytecode_to_factory_dep(code)?; let hash = u256_to_h256(hashcode.0); - let code = hashcode.1.iter() + let code = hashcode + .1 + .iter() .flat_map(|entry| { let mut bytes = vec![0u8; 32]; entry.to_big_endian(&mut bytes); diff --git a/src/utils.rs b/src/utils.rs index ab7f8e7f..68e35e43 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -17,8 +17,8 @@ use zksync_types::api::{BlockNumber, DebugCall, DebugCallType}; use zksync_types::l2::L2Tx; use zksync_types::vm_trace::Call; use zksync_types::CONTRACT_DEPLOYER_ADDRESS; -use zksync_utils::u256_to_h256; use zksync_utils::bytes_to_be_words; +use zksync_utils::u256_to_h256; use zksync_web3_decl::error::Web3Error; use crate::deps::storage_view::StorageView;