Skip to content

Commit 5aa17d2

Browse files
authored
fix: make ChainLayer network agnostic (#2045)
1 parent 56c21da commit 5aa17d2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/provider/src/layers/chain.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use alloy_chains::NamedChain;
2-
use alloy_network::Ethereum;
2+
use alloy_network::Network;
33
use std::time::Duration;
44

55
use crate::{Provider, ProviderLayer};
@@ -24,9 +24,10 @@ impl From<NamedChain> for ChainLayer {
2424
}
2525
}
2626

27-
impl<P> ProviderLayer<P, Ethereum> for ChainLayer
27+
impl<P, N> ProviderLayer<P, N> for ChainLayer
2828
where
29-
P: Provider,
29+
P: Provider<N>,
30+
N: Network,
3031
{
3132
type Provider = P;
3233

0 commit comments

Comments
 (0)