pub async fn update_signer_nonce(client: &XtClient, signer: &mut SrSigner) -> Result<()> {
    let account_id = signer.account_id().clone();
    let nonce = client.account_nonce(&account_id).await?;
    signer.set_nonce(nonce);
    log::info!("Fetch account {} nonce={}", account_id, nonce);
    Ok(())
}
/// Updates the nonce from the mempool
Updates the nonce from the mempool
Updates the nonce from the mempool
pub async fn update_signer_nonce(client: &XtClient, signer: &mut SrSigner) -> Result<()> {
    let account_id = signer.account_id().clone();
    let nonce = client.account_nonce(&account_id).await?;
    signer.set_nonce(nonce);
    log::info!("Fetch account {} nonce={}", account_id, nonce);
    Ok(())
}
pub async fn update_signer_nonce ( client : & XtClient , signer : & mut SrSigner ) -> Result < ( ) > { let account_id = signer . account_id ( ) . clone ( ) ; let nonce = client . account_nonce ( & account_id ) . await ? ; signer . set_nonce ( nonce ) ; log :: info ! ( " " account_id nonce ) ; Ok ( ( ) ) }
Updates the nonce from the mempool
Updates the nonce from the mempool
client
&XtClient
signer
&mut SrSigner
client
&XtClient
signer
&mut SrSigner