From 893de64c3fd7f6f851d587d44ad48bf13293bcda Mon Sep 17 00:00:00 2001 From: frisitano Date: Mon, 2 Dec 2024 14:58:41 +0800 Subject: [PATCH] add merge files --- Cargo.lock | 8 ++++---- crates/chain-state/src/memory_overlay.rs | 2 +- crates/rpc/rpc-eth-types/src/simulate.rs | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b69aef5ab400..8180e83e4069 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4606,9 +4606,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.165" +version = "0.2.167" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcb4d3d38eab6c5239a362fa8bae48c03baf980a6e7079f063942d563ef3533e" +checksum = "09d6582e104315a817dff97f75133544b2e094ee22447d2acf4a74e189ba06fc" [[package]] name = "libloading" @@ -4617,7 +4617,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4" dependencies = [ "cfg-if", - "windows-targets 0.48.5", + "windows-targets 0.52.6", ] [[package]] @@ -11354,7 +11354,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3637e734239e12ab152cd269302500bd063f37624ee210cd04b4936ed671f3b1" dependencies = [ "cc", - "windows-targets 0.48.5", + "windows-targets 0.52.6", ] [[package]] diff --git a/crates/chain-state/src/memory_overlay.rs b/crates/chain-state/src/memory_overlay.rs index 4b5aea8ad8f3..b39c4e57b97d 100644 --- a/crates/chain-state/src/memory_overlay.rs +++ b/crates/chain-state/src/memory_overlay.rs @@ -179,7 +179,7 @@ macro_rules! impl_state_provider { ) -> ProviderResult { let state = &self.trie_state().state; let mut hashed_storage = - state.storages.get(&keccak256(address)).cloned().unwrap_or_default(); + state.storages.get(&self.hash_key(address.as_ref())).cloned().unwrap_or_default(); hashed_storage.extend(&storage); self.historical.storage_multiproof(address, slots, hashed_storage) } diff --git a/crates/rpc/rpc-eth-types/src/simulate.rs b/crates/rpc/rpc-eth-types/src/simulate.rs index f37b38d065f3..323253216e11 100644 --- a/crates/rpc/rpc-eth-types/src/simulate.rs +++ b/crates/rpc/rpc-eth-types/src/simulate.rs @@ -14,7 +14,6 @@ use reth_primitives::{ }; use reth_rpc_server_types::result::rpc_err; use reth_rpc_types_compat::{block::from_block, TransactionCompat}; -use reth_storage_api::{KeyHasherProvider, StateRootProvider}; use revm::Database; use revm_primitives::{Address, BlockEnv, Bytes, ExecutionResult, TxKind, B256, U256};