From 23246d4206cf28abc007ef24e09965a269ea7bb0 Mon Sep 17 00:00:00 2001 From: Yash Atreya <44857776+yash-atreya@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:31:04 +0530 Subject: [PATCH] fix --- crates/provider/src/builder.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/crates/provider/src/builder.rs b/crates/provider/src/builder.rs index ec78a6e8177..d32da2d9035 100644 --- a/crates/provider/src/builder.rs +++ b/crates/provider/src/builder.rs @@ -131,6 +131,11 @@ impl pub fn new() -> Self { ProviderBuilder::default().with_recommended_fillers() } + + /// Opt-out of the recommended fillers by reseting the fillers stack in the [`ProviderBuilder`]. + pub fn disable_recommended_fillers(self) -> ProviderBuilder { + ProviderBuilder { layer: self.layer, filler: Identity, network: self.network } + } } impl Default for ProviderBuilder { @@ -139,13 +144,6 @@ impl Default for ProviderBuilder { } } -impl ProviderBuilder { - /// Opt-out of the recommended fillers by reseting the fillers stack in the [`ProviderBuilder`]. - pub fn disable_recommended_fillers(self) -> ProviderBuilder { - ProviderBuilder { layer: self.layer, filler: Identity, network: self.network } - } -} - impl ProviderBuilder { /// Add preconfigured set of layers handling gas estimation, nonce /// management, and chain-id fetching.