From d3088e171cb52437b16911ff9d7efd29945698cb Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Sat, 14 Feb 2026 03:08:05 -0800 Subject: [PATCH] feat(execution-types): add account_state helper to BlockExecutionOutput (#22177) Co-authored-by: Amp --- crates/evm/execution-types/src/execute.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/evm/execution-types/src/execute.rs b/crates/evm/execution-types/src/execute.rs index 452ebae2b3..a5149b8f46 100644 --- a/crates/evm/execution-types/src/execute.rs +++ b/crates/evm/execution-types/src/execute.rs @@ -1,6 +1,6 @@ use alloy_primitives::{Address, B256, U256}; use reth_primitives_traits::{Account, Bytecode}; -use revm::database::BundleState; +use revm::database::{states::BundleState, BundleAccount}; pub use alloy_evm::block::BlockExecutionResult; @@ -37,6 +37,11 @@ impl BlockExecutionOutput { self.state.account(address).map(|a| a.info.as_ref().map(Into::into)) } + /// Returns the state [`BundleAccount`] for the given address. + pub fn account_state(&self, address: &Address) -> Option<&BundleAccount> { + self.state.account(address) + } + /// Get storage if value is known. /// /// This means that depending on status we can potentially return `U256::ZERO`.