Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pub visibility modifiers to some op executer types #10852

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading