Skip to content

Commit

Permalink
Add pub visibility modifiers to some op executer types (#10852)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
  • Loading branch information
ewoolsey and mattsse authored Sep 12, 2024
1 parent 3977efe commit 875cee2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions crates/optimism/evm/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ where

/// Helper container type for EVM with chain spec.
#[derive(Debug, Clone)]
struct OpEvmExecutor<EvmConfig> {
pub struct OpEvmExecutor<EvmConfig> {
/// The chainspec
chain_spec: Arc<ChainSpec>,
/// How to create an EVM.
Expand Down Expand Up @@ -249,14 +249,14 @@ impl<EvmConfig, DB> OpBlockExecutor<EvmConfig, DB> {
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<DB> {
pub fn state_mut(&mut self) -> &mut State<DB> {
&mut self.state
}
}
Expand Down Expand Up @@ -384,8 +384,7 @@ impl<EvmConfig, DB> OpBatchExecutor<EvmConfig, DB> {
}

/// Returns mutable reference to the state that wraps the underlying database.
#[allow(unused)]
fn state_mut(&mut self) -> &mut State<DB> {
pub fn state_mut(&mut self) -> &mut State<DB> {
self.executor.state_mut()
}
}
Expand Down

0 comments on commit 875cee2

Please sign in to comment.