Skip to content

Commit

Permalink
fix: make ChainLayer network agnostic (#2045)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosnacks authored Feb 11, 2025
1 parent 56c21da commit 5aa17d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/provider/src/layers/chain.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use alloy_chains::NamedChain;
use alloy_network::Ethereum;
use alloy_network::Network;
use std::time::Duration;

use crate::{Provider, ProviderLayer};
Expand All @@ -24,9 +24,10 @@ impl From<NamedChain> for ChainLayer {
}
}

impl<P> ProviderLayer<P, Ethereum> for ChainLayer
impl<P, N> ProviderLayer<P, N> for ChainLayer
where
P: Provider,
P: Provider<N>,
N: Network,
{
type Provider = P;

Expand Down

0 comments on commit 5aa17d2

Please sign in to comment.