mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 00:31:07 +00:00
No need to entangle Signer and nonce now (#702)
* no need to entangle Signr and nonce now * fmt
This commit is contained in:
@@ -224,14 +224,11 @@ where
|
||||
Call: TxPayload,
|
||||
{
|
||||
// Get nonce from the node.
|
||||
let account_nonce = if let Some(nonce) = signer.nonce() {
|
||||
nonce
|
||||
} else {
|
||||
self.client
|
||||
.rpc()
|
||||
.system_account_next_index(signer.account_id())
|
||||
.await?
|
||||
};
|
||||
let account_nonce = self
|
||||
.client
|
||||
.rpc()
|
||||
.system_account_next_index(signer.account_id())
|
||||
.await?;
|
||||
|
||||
self.create_signed_with_nonce(call, signer, account_nonce, other_params)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user