Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix typo in RecommendedFillers associated type #1536

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion crates/provider/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<L, N: Network> ProviderBuilder<L, Identity, N> {
/// management, and chain-id fetching.
pub fn with_recommended_fillers(
self,
) -> ProviderBuilder<L, JoinFill<Identity, N::RecomendedFillers>, N>
) -> ProviderBuilder<L, JoinFill<Identity, N::RecommendedFillers>, N>
where
N: RecommendedFillers,
{
Expand Down
12 changes: 6 additions & 6 deletions crates/provider/src/fillers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,17 +312,17 @@ where
/// A trait which may be used to configure default fillers for [Network] implementations.
pub trait RecommendedFillers: Network {
/// Recommended fillers for this network.
type RecomendedFillers: TxFiller<Self>;
type RecommendedFillers: TxFiller<Self>;

/// Returns the recommended filler for this provider.
fn recommended_fillers() -> Self::RecomendedFillers;
fn recommended_fillers() -> Self::RecommendedFillers;
}

impl RecommendedFillers for Ethereum {
type RecomendedFillers =
type RecommendedFillers =
JoinFill<GasFiller, JoinFill<BlobGasFiller, JoinFill<NonceFiller, ChainIdFiller>>>;

fn recommended_fillers() -> Self::RecomendedFillers {
fn recommended_fillers() -> Self::RecommendedFillers {
JoinFill::new(
GasFiller,
JoinFill::new(
Expand All @@ -334,10 +334,10 @@ impl RecommendedFillers for Ethereum {
}

impl RecommendedFillers for AnyNetwork {
type RecomendedFillers =
type RecommendedFillers =
JoinFill<GasFiller, JoinFill<BlobGasFiller, JoinFill<NonceFiller, ChainIdFiller>>>;

fn recommended_fillers() -> Self::RecomendedFillers {
fn recommended_fillers() -> Self::RecommendedFillers {
JoinFill::new(
GasFiller,
JoinFill::new(
Expand Down