From ebdf859173326649d2125b76ce2ae3918141aa57 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Thu, 1 Aug 2024 19:06:54 +0200 Subject: [PATCH] chore: correctly cfg unused type --- crates/provider/src/builder.rs | 1 + crates/provider/src/provider/trait.rs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/provider/src/builder.rs b/crates/provider/src/builder.rs index 3871ac86865..802daae0c84 100644 --- a/crates/provider/src/builder.rs +++ b/crates/provider/src/builder.rs @@ -346,6 +346,7 @@ impl ProviderBuilder { } } +#[cfg(any(test, feature = "anvil-node"))] type JoinedEthereumWalletFiller = JoinFill>; #[cfg(any(test, feature = "anvil-node"))] diff --git a/crates/provider/src/provider/trait.rs b/crates/provider/src/provider/trait.rs index 6af73c6744b..263dbda203a 100644 --- a/crates/provider/src/provider/trait.rs +++ b/crates/provider/src/provider/trait.rs @@ -148,7 +148,10 @@ pub trait Provider: /// Not all client implementations support state overrides. #[doc(alias = "eth_call")] #[doc(alias = "call_with_overrides")] - fn call<'req>(&self, tx: &'req N::TransactionRequest) -> EthCall<'req, 'static, T, N, Bytes> { + fn call<'req, 'state>( + &self, + tx: &'req N::TransactionRequest, + ) -> EthCall<'req, 'state, T, N, Bytes> { EthCall::new(self.weak_client(), tx) }