fn increment_nonce(account: &AccountId) {
    //FIXME: Proper error handling - should be taken into
    // consideration after implementing pay fee check
    if let Some(mut acc_info) = get_account_info(account) {
        debug!("incrementing account nonce");
        acc_info.nonce += 1;
        sp_io::storage::set(&account_key_hash(account), &acc_info.encode());
        debug!(
            "updated account {:?} nonce: {:?}",
            account.encode(),
            get_account_info(account).unwrap().nonce
        );
    } else {
        error!("tried to increment nonce of a non-existent account")
    }
}
/// increment nonce after a successful call execution
increment nonce after a successful call execution
increment nonce after a successful call execution
fn increment_nonce(account: &AccountId) {
    //FIXME: Proper error handling - should be taken into
    // consideration after implementing pay fee check
    if let Some(mut acc_info) = get_account_info(account) {
        debug!("incrementing account nonce");
        acc_info.nonce += 1;
        sp_io::storage::set(&account_key_hash(account), &acc_info.encode());
        debug!(
            "updated account {:?} nonce: {:?}",
            account.encode(),
            get_account_info(account).unwrap().nonce
        );
    } else {
        error!("tried to increment nonce of a non-existent account")
    }
}
fn increment_nonce ( account : & AccountId ) { //FIXME: Proper error handling - should be taken into // consideration after implementing pay fee check if let Some ( mut acc_info ) = get_account_info ( account ) { debug ! ( " " ) ; acc_info . nonce += 1 ; sp_io :: storage :: set ( & account_key_hash ( account ) , & acc_info . encode ( ) ) ; debug ! ( " " account encode ( ) get_account_info ( account ) unwrap ( ) nonce ) ; } else { error ! ( " " ) } }
increment nonce after a successful call execution
increment nonce after a successful call execution
account
&AccountId
account
&AccountId