mark TransactionFut as Send (#723)

* mark TransactionFut as Send

* no send when wasm32
This commit is contained in:
georgewhewell 2021-12-23 14:29:51 +00:00 committed by GitHub
parent c22afee26a
commit bb0cd7acdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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>;