Remove unnecessary async and fix latest substrate changes (#645)

This commit is contained in:
James Wilson
2022-09-05 17:40:00 +01:00
committed by GitHub
parent 599107b432
commit 06287fc119
4 changed files with 22 additions and 11 deletions
+2 -3
View File
@@ -84,7 +84,7 @@ impl<T: Config, C: OfflineClientT<T>> TxClient<T, C> {
}
/// Creates an unsigned extrinsic without submitting it.
pub async fn create_unsigned<Call>(
pub fn create_unsigned<Call>(
&self,
call: &Call,
) -> Result<SubmittableExtrinsic<T, C>, Error>
@@ -121,7 +121,7 @@ impl<T: Config, C: OfflineClientT<T>> TxClient<T, C> {
}
/// Creates a raw signed extrinsic without submitting it.
pub async fn create_signed_with_nonce<Call>(
pub fn create_signed_with_nonce<Call>(
&self,
call: &Call,
signer: &(dyn Signer<T> + Send + Sync),
@@ -234,7 +234,6 @@ where
};
self.create_signed_with_nonce(call, signer, account_nonce, other_params)
.await
}
/// Creates and signs an extrinsic and submits it to the chain. Passes default parameters