diff --git a/pallets/authority-members/src/mock.rs b/pallets/authority-members/src/mock.rs index f4d412df500eacbd3f611a7d28f574f92e3c77a3..34b26a9220901cada607e7cb14f7942cf5d25ae5 100644 --- a/pallets/authority-members/src/mock.rs +++ b/pallets/authority-members/src/mock.rs @@ -75,16 +75,21 @@ impl system::Config for Test { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = SS58Prefix; + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/pallets/certification/src/mock.rs b/pallets/certification/src/mock.rs index 066753f25f2abe6c112476de07586c481746ae5e..7f24b214bb241c170a08a26e714ff77ebe621f6a 100644 --- a/pallets/certification/src/mock.rs +++ b/pallets/certification/src/mock.rs @@ -56,16 +56,21 @@ impl system::Config for Test { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = SS58Prefix; + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/pallets/distance/src/mock.rs b/pallets/distance/src/mock.rs index 86337cce6a5b40760195e5377a47a7c7ed8c5cb6..5d68135168973de8f88f9a7ffbb386cd8683c2d8 100644 --- a/pallets/distance/src/mock.rs +++ b/pallets/distance/src/mock.rs @@ -81,16 +81,21 @@ impl system::Config for Test { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = SS58Prefix; + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/pallets/duniter-wot/src/mock.rs b/pallets/duniter-wot/src/mock.rs index 0a442ac5d6ddb5840384c914abef1028b3a91092..d9ebcb1807f3a234098efe0724e176d3a8e9f4ee 100644 --- a/pallets/duniter-wot/src/mock.rs +++ b/pallets/duniter-wot/src/mock.rs @@ -69,16 +69,21 @@ impl system::Config for Test { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = SS58Prefix; + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/pallets/identity/src/mock.rs b/pallets/identity/src/mock.rs index 8a887b00810c4fda3e67f23b3de4e1348057f878..81a0dc3566670947f6988f74664b978b8b5c7f7e 100644 --- a/pallets/identity/src/mock.rs +++ b/pallets/identity/src/mock.rs @@ -68,16 +68,21 @@ impl system::Config for Test { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = SS58Prefix; + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/pallets/membership/src/mock.rs b/pallets/membership/src/mock.rs index 5fb5d29ecf991aa935d7463a7a1344d6ec3837c2..2d27a0d79496adb355fe084d907869001ec5c71e 100644 --- a/pallets/membership/src/mock.rs +++ b/pallets/membership/src/mock.rs @@ -57,16 +57,21 @@ impl system::Config for Test { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = SS58Prefix; + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/pallets/offences/src/mock.rs b/pallets/offences/src/mock.rs index 11b2b4109bf36dbc31dca713ee06fe3ba95bccbd..76fb2218f4e5c1482d8f058effd6353907690d0b 100644 --- a/pallets/offences/src/mock.rs +++ b/pallets/offences/src/mock.rs @@ -76,16 +76,21 @@ impl frame_system::Config for Runtime { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = (); + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/pallets/oneshot-account/src/mock.rs b/pallets/oneshot-account/src/mock.rs index d6c18c736ddf4be266517a6550e3c5650d9bf638..cddd7e00615f3cabb33511469e2b6018843a771a 100644 --- a/pallets/oneshot-account/src/mock.rs +++ b/pallets/oneshot-account/src/mock.rs @@ -57,16 +57,21 @@ impl system::Config for Test { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = SS58Prefix; + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/pallets/quota/src/mock.rs b/pallets/quota/src/mock.rs index b5fa5311f30d1d4390212eb75dfbece4db596842..06aa1acbee1eff0cfaca74905e2f48093e18ba0c 100644 --- a/pallets/quota/src/mock.rs +++ b/pallets/quota/src/mock.rs @@ -91,16 +91,21 @@ impl system::Config for Test { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = SS58Prefix; + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/pallets/smith-members/src/mock.rs b/pallets/smith-members/src/mock.rs index 2e7ddf15b5147d2ee1fc40cd7220bcecb198dfe8..3669161b596f1fd1b14f36c65661aa4c00735d38 100644 --- a/pallets/smith-members/src/mock.rs +++ b/pallets/smith-members/src/mock.rs @@ -57,16 +57,21 @@ impl frame_system::Config for Runtime { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = (); + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/pallets/universal-dividend/src/lib.rs b/pallets/universal-dividend/src/lib.rs index a360fbdf4a9cac88631fd1353e33822fa57fdea2..9eb12eb1b4416be4400c4f2edd46fcb74c963b29 100644 --- a/pallets/universal-dividend/src/lib.rs +++ b/pallets/universal-dividend/src/lib.rs @@ -181,7 +181,7 @@ pub mod pallet { initial_monetary_mass: Default::default(), #[cfg(test)] initial_members: Default::default(), - ud: Default::default(), + ud: BalanceOf::<T>::one(), } } } diff --git a/pallets/universal-dividend/src/mock.rs b/pallets/universal-dividend/src/mock.rs index 55cafb5bec5dba460ecae97eb440fdf97509ddcf..dbe776de299815ba5f3b2f63c9f82297c64631da 100644 --- a/pallets/universal-dividend/src/mock.rs +++ b/pallets/universal-dividend/src/mock.rs @@ -64,16 +64,21 @@ impl system::Config for Test { type Hashing = BlakeTwo256; type Lookup = IdentityLookup<Self::AccountId>; type MaxConsumers = frame_support::traits::ConstU32<16>; + type MultiBlockMigrator = (); type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); type PalletInfo = PalletInfo; + type PostInherents = (); + type PostTransactions = (); + type PreInherents = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; type RuntimeTask = (); type SS58Prefix = SS58Prefix; + type SingleBlockMigrations = (); type SystemWeightInfo = (); type Version = (); } diff --git a/runtime/gdev/tests/offences_tests.rs b/runtime/gdev/tests/offences_tests.rs index 25f8f63aecab38a98b967f51ed963a0ae367d749..fbfbb9d308d8882355eab1e5baee138bfc2e738c 100644 --- a/runtime/gdev/tests/offences_tests.rs +++ b/runtime/gdev/tests/offences_tests.rs @@ -44,7 +44,7 @@ fn test_imonline_offence() { .map(|full_id| (id, full_id)) }) .collect::<Vec<IdentificationTuple<Runtime>>>(); - let keys = ImOnline::keys(); + let keys = pallet_im_online::Keys::<Runtime>::get(); let validator_set_count = keys.len() as u32; let offence = UnresponsivenessOffence { session_index, @@ -86,7 +86,7 @@ fn test_grandpa_offence() { .map(|full_id| (id, full_id)) }) .collect::<Vec<IdentificationTuple<Runtime>>>(); - let keys = ImOnline::keys(); + let keys = pallet_im_online::Keys::<Runtime>::get(); let validator_set_count = keys.len() as u32; let time_slot = pallet_grandpa::TimeSlot { set_id: 0, @@ -131,7 +131,7 @@ fn test_babe_offence() { .map(|full_id| (id, full_id)) }) .collect::<Vec<IdentificationTuple<Runtime>>>(); - let keys = ImOnline::keys(); + let keys = pallet_im_online::Keys::<Runtime>::get(); let validator_set_count = keys.len() as u32; let offence = pallet_babe::EquivocationOffence { slot: 0u64.into(),