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;