Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-atreya committed Jan 9, 2025
1 parent 2d9c488 commit 23246d4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions crates/provider/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Identity, Identity, Ethereum> {
ProviderBuilder { layer: self.layer, filler: Identity, network: self.network }
}
}

impl<N> Default for ProviderBuilder<Identity, Identity, N> {
Expand All @@ -139,13 +144,6 @@ impl<N> Default for ProviderBuilder<Identity, Identity, N> {
}
}

impl<L, F, N> ProviderBuilder<L, F, N> {
/// Opt-out of the recommended fillers by reseting the fillers stack in the [`ProviderBuilder`].
pub fn disable_recommended_fillers(self) -> ProviderBuilder<L, Identity, N> {
ProviderBuilder { layer: self.layer, filler: Identity, network: self.network }
}
}

impl<L, N: Network> ProviderBuilder<L, Identity, N> {
/// Add preconfigured set of layers handling gas estimation, nonce
/// management, and chain-id fetching.
Expand Down

0 comments on commit 23246d4

Please sign in to comment.