From bb0cd7acddfd0bd7b9258c842ef155458d16c5b3 Mon Sep 17 00:00:00 2001 From: georgewhewell Date: Thu, 23 Dec 2021 14:29:51 +0000 Subject: [PATCH] mark TransactionFut as Send (#723) * mark TransactionFut as Send * no send when wasm32 --- ethers-providers/src/stream.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ethers-providers/src/stream.rs b/ethers-providers/src/stream.rs index 4003b61c..d5ef4f7b 100644 --- a/ethers-providers/src/stream.rs +++ b/ethers-providers/src/stream.rs @@ -162,6 +162,9 @@ impl From for ProviderError { } } +#[cfg(not(target_arch = "wasm32"))] +type TransactionFut<'a> = Pin + Send + 'a>>; +#[cfg(target_arch = "wasm32")] type TransactionFut<'a> = Pin + 'a>>; type TransactionResult = Result;