Skip to content

Commit 74efdec

Browse files
authored
chore: correctly cfg unused type (#1117)
1 parent 8e5a9fb commit 74efdec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

crates/provider/src/builder.rs

+1
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ impl<L, F, N> ProviderBuilder<L, F, N> {
346346
}
347347
}
348348

349+
#[cfg(any(test, feature = "anvil-node"))]
349350
type JoinedEthereumWalletFiller<F> = JoinFill<F, WalletFiller<alloy_network::EthereumWallet>>;
350351

351352
#[cfg(any(test, feature = "anvil-node"))]

crates/provider/src/provider/trait.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ pub trait Provider<T: Transport + Clone = BoxTransport, N: Network = Ethereum>:
148148
/// Not all client implementations support state overrides.
149149
#[doc(alias = "eth_call")]
150150
#[doc(alias = "call_with_overrides")]
151-
fn call<'req>(&self, tx: &'req N::TransactionRequest) -> EthCall<'req, 'static, T, N, Bytes> {
151+
fn call<'req, 'state>(
152+
&self,
153+
tx: &'req N::TransactionRequest,
154+
) -> EthCall<'req, 'state, T, N, Bytes> {
152155
EthCall::new(self.weak_client(), tx)
153156
}
154157

0 commit comments

Comments
 (0)