From fd73486ef50100e45572735d88359d4a35a8a03d Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 27 Jan 2023 23:42:28 +0100 Subject: [PATCH] fix: add cfg to IntoFuture preventing Send --- ethers-contract/src/call.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ethers-contract/src/call.rs b/ethers-contract/src/call.rs index 0c5a4985e..676bd8d89 100644 --- a/ethers-contract/src/call.rs +++ b/ethers-contract/src/call.rs @@ -228,6 +228,11 @@ where D: Detokenize + Send + Sync, { type Output = Result>; + + #[cfg(target_arch = "wasm32")] + type IntoFuture = Pin>>; + + #[cfg(not(target_arch = "wasm32"))] type IntoFuture = Pin + Send>>; fn into_future(self) -> Self::IntoFuture {