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 b90fc0ffbd7..4d2664718af 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) }