From 60e1779626f9bfbcea83fc6a73d636d445886d11 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 30 Jan 2023 21:06:34 +0100 Subject: [PATCH] fix: add cfg to IntoFuture preventing Send (#2086) --- 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 0c5a4985..676bd8d8 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 {