Skip to content

Commit

Permalink
fix: impl_future macro
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Mar 30, 2024
1 parent 00bc324 commit dd3da7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ serde_json.workspace = true
tokio = { workspace = true, features = ["sync", "macros"] }
tracing.workspace = true
url = { workspace = true, optional = true }
futures-utils-wasm.workspace = true

[dev-dependencies]
alloy-consensus.workspace = true
Expand Down
5 changes: 3 additions & 2 deletions crates/provider/src/layers/join_fill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use alloy_network::{Ethereum, Network};
use alloy_transport::{Transport, TransportResult};
use async_trait::async_trait;
use futures::try_join;
use std::{future::Future, marker::PhantomData};
use futures_utils_wasm::impl_future;
use std::marker::PhantomData;

/// The control flow for a filler.
#[derive(Debug, Clone, PartialEq, Eq)]
Expand Down Expand Up @@ -128,7 +129,7 @@ pub trait TxFiller<N: Network = Ethereum>: Clone + Send + Sync {
&self,
provider: &P,
tx: &N::TransactionRequest,
) -> impl Future<Output = TransportResult<Self::Fillable>> + Send
) -> impl_future!(<Output = TransportResult<Self::Fillable>>)
where
P: Provider<T, N>,
T: Transport + Clone;
Expand Down

0 comments on commit dd3da7a

Please sign in to comment.