perf(evm-config): return &Arc<ChainSpec> (#12748)

This commit is contained in:
Hai | RISE
2024-11-21 23:46:44 +07:00
committed by GitHub
parent ad7885b48c
commit 2c7b404c24
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ impl EthEvmConfig {
}
/// Returns the chain spec associated with this configuration.
pub fn chain_spec(&self) -> &ChainSpec {
pub const fn chain_spec(&self) -> &Arc<ChainSpec> {
&self.chain_spec
}
}

View File

@ -50,7 +50,7 @@ impl OpEvmConfig {
}
/// Returns the chain spec associated with this configuration.
pub fn chain_spec(&self) -> &OpChainSpec {
pub const fn chain_spec(&self) -> &Arc<OpChainSpec> {
&self.chain_spec
}
}