You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something like this seems appropriate as it allows submitting multiple extrinsic for the same account id on the same block more easily, and seems more aligned with the polkadot-js ecosystem;
/// Fetch the next nonce for the given account id.pubasyncfnfetch_next_nonce(&self,account:&T::AccountId,) -> Result<T::Index,BasicError>where
<TasConfig>::AccountId:MaybeSerializeDeserialize,
<TasConfig>::Index:MaybeSerializeDeserialize,{Ok(self.rpc().client.request("system_accountNextIndex",rpc_params![account]).await?)}
Thanks!
The text was updated successfully, but these errors were encountered:
Hi guys,
I'm wondering, is there any reason you are using the latest nonce instead of the rpc call
system_accountNextIndex
on thecreate_signed
function?You are currently using;
Something like this seems appropriate as it allows submitting multiple extrinsic for the same account id on the same block more easily, and seems more aligned with the polkadot-js ecosystem;
Thanks!
The text was updated successfully, but these errors were encountered: