Skip to content

Commit

Permalink
reformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
vbar committed Jun 20, 2024
1 parent 70a07de commit 46da4c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/node/in_memory_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ impl<S: ForkSource + std::fmt::Debug + Clone + Send + Sync + 'static> 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);
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 46da4c7

Please sign in to comment.