Replace Index for Nonce (#7374)

* replace Index for Nonce

* remove extra Nonce

* update lockfile for {"substrate"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Juanandparity-processbot authored and GitHub committed 2023-07-14 08:13:39 +00:00
1 parent 2802414473
commit b95cc76d7c
27 files changed
+221 -233

No files matched your search

+2 -3
View File
@@ -140,8 +140,7 @@ impl frame_system::Config for Runtime {
type DbWeight = ();
type RuntimeOrigin = RuntimeOrigin;
type RuntimeCall = RuntimeCall;
type Index = Nonce;
type Nonce = Nonce;
type Hash = HashT;
type Hashing = BlakeTwo256;
type AccountId = AccountId;
@@ -385,7 +384,7 @@ where
call: RuntimeCall,
public: <Signature as Verify>::Signer,
account: AccountId,
nonce: <Runtime as frame_system::Config>::Index,
nonce: <Runtime as frame_system::Config>::Nonce,
) -> Option<(RuntimeCall, <UncheckedExtrinsic as ExtrinsicT>::SignaturePayload)> {
let period =
BlockHashCount::get().checked_next_power_of_two().map(|c| c / 2).unwrap_or(2) as u64;