Skip to content

Commit 3d8e63f

Browse files
chee-chyuanclaude
andcommitted
fix: add missing BlockHeader methods to CustomRpcHeader, remove unused import
alloy_consensus::BlockHeader gained block_access_list_hash and slot_number in v2.1.0; delegate both to self.inner in CustomRpcHeader. Remove unused revm::context::result::ExecutionResult import from execute.rs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2c482e4 commit 3d8e63f

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

crates/evm/evm/src/execute.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ use reth_primitives_traits::{
2121
use reth_storage_api::StateProvider;
2222
pub use reth_storage_errors::provider::ProviderError;
2323
use reth_trie_common::{updates::TrieUpdates, HashedPostState};
24-
use revm::{
25-
context::result::ExecutionResult,
26-
database::{states::bundle_state::BundleRetention, BundleState, State},
27-
};
24+
use revm::database::{states::bundle_state::BundleRetention, BundleState, State};
2825
#[cfg(feature = "std")]
2926
use rust_eth_triedb_common::DiffLayer;
3027

crates/rpc/rpc-convert/src/custom_header.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ where
155155
self.inner.requests_hash()
156156
}
157157

158+
fn block_access_list_hash(&self) -> Option<alloy_primitives::FixedBytes<32>> {
159+
self.inner.block_access_list_hash()
160+
}
161+
162+
fn slot_number(&self) -> Option<u64> {
163+
self.inner.slot_number()
164+
}
165+
158166
fn extra_data(&self) -> &alloy_primitives::Bytes {
159167
self.inner.extra_data()
160168
}

0 commit comments

Comments
 (0)