Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mm-zk committed Jan 15, 2025
1 parent 7214f87 commit 0cd8a0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions crates/core/src/node/inner/in_memory_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ impl InMemoryNodeInner {
}
// Also add bytecodes that were created by EVM.
for entry in &tx_result.dynamic_factory_deps {
bytecodes.insert(entry.0.clone(), entry.1.clone());
bytecodes.insert(*entry.0, entry.1.clone());
}

Ok(TxExecutionOutput {
Expand Down Expand Up @@ -488,8 +488,7 @@ impl InMemoryNodeInner {

// Write all the factory deps.
for (hash, code) in bytecodes.iter() {
self.fork_storage
.store_factory_dep(hash.clone(), code.clone())
self.fork_storage.store_factory_dep(*hash, code.clone())
}

let logs = result
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/node/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl StorageKeyLayout {
#[cfg(not(feature = "zkos"))]
return zksync_types::utils::storage_key_for_standard_token_balance(
zksync_types::AccountTreeId::new(zksync_types::L2_BASE_TOKEN_ADDRESS),
&address,
address,
);
#[cfg(feature = "zkos")]
return crate::node::zkos::zkos_storage_key_for_eth_balance(address);
Expand Down

0 comments on commit 0cd8a0d

Please sign in to comment.