Add pub visibility modifiers to some op executer types (#10852)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Eric Woolsey
2024-09-11 22:43:58 -07:00
committed by GitHub
parent 3977efe93a
commit 875cee27ac

View File

@ -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.
@ -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
}
}
@ -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()
}
}