mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Add pub visibility modifiers to some op executer types (#10852)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user