Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 2fdc949

Browse files
juangiriniEgorPopelyaev
authored andcommitted
Replace Index for Nonce (#7374)
* replace Index for Nonce * remove extra Nonce * update lockfile for {"substrate"} --------- Co-authored-by: parity-processbot <>
1 parent da75bf6 commit 2fdc949

26 files changed

Lines changed: 38 additions & 61 deletions

File tree

runtime/common/src/assigned_slots.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,7 @@ mod tests {
597597
type BlockLength = ();
598598
type RuntimeOrigin = RuntimeOrigin;
599599
type RuntimeCall = RuntimeCall;
600-
type Index = u64;
601-
type BlockNumber = BlockNumber;
600+
type Nonce = u64;
602601
type Hash = H256;
603602
type Hashing = BlakeTwo256;
604603
type AccountId = u64;

runtime/common/src/auctions.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,8 +716,7 @@ mod tests {
716716
type DbWeight = ();
717717
type RuntimeOrigin = RuntimeOrigin;
718718
type RuntimeCall = RuntimeCall;
719-
type Index = u64;
720-
type BlockNumber = BlockNumber;
719+
type Nonce = u64;
721720
type Hash = H256;
722721
type Hashing = BlakeTwo256;
723722
type AccountId = u64;

runtime/common/src/claims.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,7 @@ mod tests {
746746
type DbWeight = ();
747747
type RuntimeOrigin = RuntimeOrigin;
748748
type RuntimeCall = RuntimeCall;
749-
type Index = u64;
750-
type BlockNumber = u64;
749+
type Nonce = u64;
751750
type Hash = H256;
752751
type Hashing = BlakeTwo256;
753752
type AccountId = u64;

runtime/common/src/crowdloan/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,8 +911,7 @@ mod tests {
911911
type DbWeight = ();
912912
type RuntimeOrigin = RuntimeOrigin;
913913
type RuntimeCall = RuntimeCall;
914-
type Index = u64;
915-
type BlockNumber = BlockNumber;
914+
type Nonce = u64;
916915
type Hash = H256;
917916
type Hashing = BlakeTwo256;
918917
type AccountId = u64;

runtime/common/src/impls.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ mod tests {
152152
impl frame_system::Config for Test {
153153
type BaseCallFilter = frame_support::traits::Everything;
154154
type RuntimeOrigin = RuntimeOrigin;
155-
type Index = u64;
156-
type BlockNumber = u64;
155+
type Nonce = u64;
157156
type RuntimeCall = RuntimeCall;
158157
type Hash = H256;
159158
type Hashing = BlakeTwo256;

runtime/common/src/integration_tests.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ impl frame_system::Config for Test {
119119
type DbWeight = ();
120120
type RuntimeOrigin = RuntimeOrigin;
121121
type RuntimeCall = RuntimeCall;
122-
type Index = u64;
123-
type BlockNumber = BlockNumber;
122+
type Nonce = u64;
124123
type Hash = H256;
125124
type Hashing = BlakeTwo256;
126125
type AccountId = AccountId;

runtime/common/src/paras_registrar.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,7 @@ mod tests {
719719
type BaseCallFilter = frame_support::traits::Everything;
720720
type RuntimeOrigin = RuntimeOrigin;
721721
type RuntimeCall = RuntimeCall;
722-
type Index = u64;
723-
type BlockNumber = BlockNumber;
722+
type Nonce = u64;
724723
type Hash = H256;
725724
type Hashing = BlakeTwo256;
726725
type AccountId = u64;

runtime/common/src/purchase.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,7 @@ mod tests {
519519
type DbWeight = ();
520520
type RuntimeOrigin = RuntimeOrigin;
521521
type RuntimeCall = RuntimeCall;
522-
type Index = u64;
523-
type BlockNumber = u64;
522+
type Nonce = u64;
524523
type Hash = H256;
525524
type Hashing = BlakeTwo256;
526525
type AccountId = AccountId;

runtime/common/src/slots/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,7 @@ mod tests {
536536
type BlockLength = ();
537537
type RuntimeOrigin = RuntimeOrigin;
538538
type RuntimeCall = RuntimeCall;
539-
type Index = u64;
540-
type BlockNumber = BlockNumber;
539+
type Nonce = u64;
541540
type Hash = H256;
542541
type Hashing = BlakeTwo256;
543542
type AccountId = u64;

runtime/kusama/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ impl frame_system::Config for Runtime {
175175
type BlockLength = BlockLength;
176176
type RuntimeOrigin = RuntimeOrigin;
177177
type RuntimeCall = RuntimeCall;
178-
type Index = Nonce;
179-
type BlockNumber = BlockNumber;
178+
type Nonce = Nonce;
180179
type Hash = Hash;
181180
type Hashing = BlakeTwo256;
182181
type AccountId = AccountId;
@@ -734,7 +733,7 @@ where
734733
call: RuntimeCall,
735734
public: <Signature as Verify>::Signer,
736735
account: AccountId,
737-
nonce: <Runtime as frame_system::Config>::Index,
736+
nonce: <Runtime as frame_system::Config>::Nonce,
738737
) -> Option<(RuntimeCall, <UncheckedExtrinsic as ExtrinsicT>::SignaturePayload)> {
739738
use sp_runtime::traits::StaticLookup;
740739
// take the biggest period possible.

0 commit comments

Comments
 (0)