Skip to content

Commit

Permalink
chore: correctly cfg unused type (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Aug 1, 2024
1 parent 8e5a9fb commit 74efdec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/provider/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ impl<L, F, N> ProviderBuilder<L, F, N> {
}
}

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

#[cfg(any(test, feature = "anvil-node"))]
Expand Down
5 changes: 4 additions & 1 deletion crates/provider/src/provider/trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ pub trait Provider<T: Transport + Clone = BoxTransport, N: Network = Ethereum>:
/// 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)
}

Expand Down

0 comments on commit 74efdec

Please sign in to comment.