mark TransactionFut as Send (#723)
* mark TransactionFut as Send * no send when wasm32
This commit is contained in:
parent
c22afee26a
commit
bb0cd7acdd
|
@ -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>;
|
||||
|
|
Loading…
Reference in New Issue