Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

mark TransactionFut as Send #723

Merged
merged 2 commits into from
Dec 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ethers-providers/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ impl From<GetTransactionError> for ProviderError {
}
}

#[cfg(not(target_arch = "wasm32"))]
type TransactionFut<'a> = Pin<Box<dyn Future<Output = TransactionResult> + Send + 'a>>;
#[cfg(target_arch = "wasm32")]
type TransactionFut<'a> = Pin<Box<dyn Future<Output = TransactionResult> + 'a>>;

type TransactionResult = Result<Transaction, GetTransactionError>;
Expand Down