chore: relax some op pool validator internals (#13358)

This commit is contained in:
Matthias Seitz
2024-12-12 19:05:18 +01:00
committed by GitHub
parent 55fa59952c
commit c816a3b758
3 changed files with 45 additions and 22 deletions

View File

@ -45,8 +45,8 @@ pub struct EthTransactionValidator<Client, T> {
impl<Client, Tx> EthTransactionValidator<Client, Tx> {
/// Returns the configured chain spec
pub fn chain_spec(&self) -> Arc<ChainSpec> {
self.inner.chain_spec.clone()
pub fn chain_spec(&self) -> &Arc<ChainSpec> {
&self.inner.chain_spec
}
/// Returns the configured client