Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 2 additions & 6 deletions crates/op-rbuilder/src/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,8 @@ where

let pool = ctx.pool().clone();
let provider = ctx.provider().clone();
let revert_protection_ext: RevertProtectionExt<
_,
_,
_,
op_alloy_network::Optimism,
> = RevertProtectionExt::new(pool, provider, ctx.registry.eth_api().clone());
let revert_protection_ext =
RevertProtectionExt::new(pool, provider, ctx.registry.eth_api().clone());

ctx.modules
.merge_configured(revert_protection_ext.bundle_api().into_rpc())?;
Expand Down
6 changes: 2 additions & 4 deletions crates/op-rbuilder/src/revert_protection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@ pub trait EthApiOverride<R: RpcObject> {
async fn transaction_receipt(&self, hash: B256) -> RpcResult<Option<R>>;
}

pub struct RevertProtectionExt<Pool, Provider, Eth, Network = op_alloy_network::Optimism> {
pub struct RevertProtectionExt<Pool, Provider, Eth> {
pool: Pool,
provider: Provider,
eth_api: Eth,
metrics: Arc<OpRBuilderMetrics>,
_network: std::marker::PhantomData<Network>,
}

impl<Pool, Provider, Eth, Network> RevertProtectionExt<Pool, Provider, Eth, Network>
impl<Pool, Provider, Eth> RevertProtectionExt<Pool, Provider, Eth>
where
Pool: Clone,
Provider: Clone,
Expand All @@ -57,7 +56,6 @@ where
provider,
eth_api,
metrics: Arc::new(OpRBuilderMetrics::default()),
_network: std::marker::PhantomData,
}
}

Expand Down
Loading