From 875cee27aca747315af1ef2a9dcdf29e058b33e7 Mon Sep 17 00:00:00 2001 From: Eric Woolsey Date: Wed, 11 Sep 2024 22:43:58 -0700 Subject: [PATCH] Add pub visibility modifiers to some op executer types (#10852) Co-authored-by: Matthias Seitz --- crates/optimism/evm/src/execute.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/crates/optimism/evm/src/execute.rs b/crates/optimism/evm/src/execute.rs index b5199f69ec59..2cea28bf3ab0 100644 --- a/crates/optimism/evm/src/execute.rs +++ b/crates/optimism/evm/src/execute.rs @@ -95,7 +95,7 @@ where /// Helper container type for EVM with chain spec. #[derive(Debug, Clone)] -struct OpEvmExecutor { +pub struct OpEvmExecutor { /// The chainspec chain_spec: Arc, /// How to create an EVM. @@ -249,14 +249,14 @@ impl OpBlockExecutor { Self { executor: OpEvmExecutor { chain_spec, evm_config }, state } } + /// Returns the chain spec. #[inline] - fn chain_spec(&self) -> &ChainSpec { + pub fn chain_spec(&self) -> &ChainSpec { &self.executor.chain_spec } /// Returns mutable reference to the state that wraps the underlying database. - #[allow(unused)] - fn state_mut(&mut self) -> &mut State { + pub fn state_mut(&mut self) -> &mut State { &mut self.state } } @@ -384,8 +384,7 @@ impl OpBatchExecutor { } /// Returns mutable reference to the state that wraps the underlying database. - #[allow(unused)] - fn state_mut(&mut self) -> &mut State { + pub fn state_mut(&mut self) -> &mut State { self.executor.state_mut() } }