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.