Skip to content
Snippets Groups Projects
Unverified Commit 2f953b50 authored by bgallois's avatar bgallois
Browse files

fix tests

parent a625bf49
No related branches found
No related tags found
No related merge requests found
Pipeline #36602 failed
...@@ -75,16 +75,21 @@ impl system::Config for Test { ...@@ -75,16 +75,21 @@ impl system::Config for Test {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = frame_support::traits::ConstU32<16>; type MaxConsumers = frame_support::traits::ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -56,16 +56,21 @@ impl system::Config for Test { ...@@ -56,16 +56,21 @@ impl system::Config for Test {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = frame_support::traits::ConstU32<16>; type MaxConsumers = frame_support::traits::ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -81,16 +81,21 @@ impl system::Config for Test { ...@@ -81,16 +81,21 @@ impl system::Config for Test {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = frame_support::traits::ConstU32<16>; type MaxConsumers = frame_support::traits::ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -69,16 +69,21 @@ impl system::Config for Test { ...@@ -69,16 +69,21 @@ impl system::Config for Test {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = frame_support::traits::ConstU32<16>; type MaxConsumers = frame_support::traits::ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -68,16 +68,21 @@ impl system::Config for Test { ...@@ -68,16 +68,21 @@ impl system::Config for Test {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = frame_support::traits::ConstU32<16>; type MaxConsumers = frame_support::traits::ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -57,16 +57,21 @@ impl system::Config for Test { ...@@ -57,16 +57,21 @@ impl system::Config for Test {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = frame_support::traits::ConstU32<16>; type MaxConsumers = frame_support::traits::ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -76,16 +76,21 @@ impl frame_system::Config for Runtime { ...@@ -76,16 +76,21 @@ impl frame_system::Config for Runtime {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = ConstU32<16>; type MaxConsumers = ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = (); type SS58Prefix = ();
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -57,16 +57,21 @@ impl system::Config for Test { ...@@ -57,16 +57,21 @@ impl system::Config for Test {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = frame_support::traits::ConstU32<16>; type MaxConsumers = frame_support::traits::ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -91,16 +91,21 @@ impl system::Config for Test { ...@@ -91,16 +91,21 @@ impl system::Config for Test {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = frame_support::traits::ConstU32<16>; type MaxConsumers = frame_support::traits::ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -57,16 +57,21 @@ impl frame_system::Config for Runtime { ...@@ -57,16 +57,21 @@ impl frame_system::Config for Runtime {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = ConstU32<16>; type MaxConsumers = ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = (); type SS58Prefix = ();
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -181,7 +181,7 @@ pub mod pallet { ...@@ -181,7 +181,7 @@ pub mod pallet {
initial_monetary_mass: Default::default(), initial_monetary_mass: Default::default(),
#[cfg(test)] #[cfg(test)]
initial_members: Default::default(), initial_members: Default::default(),
ud: Default::default(), ud: BalanceOf::<T>::one(),
} }
} }
} }
......
...@@ -64,16 +64,21 @@ impl system::Config for Test { ...@@ -64,16 +64,21 @@ impl system::Config for Test {
type Hashing = BlakeTwo256; type Hashing = BlakeTwo256;
type Lookup = IdentityLookup<Self::AccountId>; type Lookup = IdentityLookup<Self::AccountId>;
type MaxConsumers = frame_support::traits::ConstU32<16>; type MaxConsumers = frame_support::traits::ConstU32<16>;
type MultiBlockMigrator = ();
type Nonce = u64; type Nonce = u64;
type OnKilledAccount = (); type OnKilledAccount = ();
type OnNewAccount = (); type OnNewAccount = ();
type OnSetCode = (); type OnSetCode = ();
type PalletInfo = PalletInfo; type PalletInfo = PalletInfo;
type PostInherents = ();
type PostTransactions = ();
type PreInherents = ();
type RuntimeCall = RuntimeCall; type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type RuntimeOrigin = RuntimeOrigin; type RuntimeOrigin = RuntimeOrigin;
type RuntimeTask = (); type RuntimeTask = ();
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type SingleBlockMigrations = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type Version = (); type Version = ();
} }
......
...@@ -44,7 +44,7 @@ fn test_imonline_offence() { ...@@ -44,7 +44,7 @@ fn test_imonline_offence() {
.map(|full_id| (id, full_id)) .map(|full_id| (id, full_id))
}) })
.collect::<Vec<IdentificationTuple<Runtime>>>(); .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 validator_set_count = keys.len() as u32;
let offence = UnresponsivenessOffence { let offence = UnresponsivenessOffence {
session_index, session_index,
...@@ -86,7 +86,7 @@ fn test_grandpa_offence() { ...@@ -86,7 +86,7 @@ fn test_grandpa_offence() {
.map(|full_id| (id, full_id)) .map(|full_id| (id, full_id))
}) })
.collect::<Vec<IdentificationTuple<Runtime>>>(); .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 validator_set_count = keys.len() as u32;
let time_slot = pallet_grandpa::TimeSlot { let time_slot = pallet_grandpa::TimeSlot {
set_id: 0, set_id: 0,
...@@ -131,7 +131,7 @@ fn test_babe_offence() { ...@@ -131,7 +131,7 @@ fn test_babe_offence() {
.map(|full_id| (id, full_id)) .map(|full_id| (id, full_id))
}) })
.collect::<Vec<IdentificationTuple<Runtime>>>(); .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 validator_set_count = keys.len() as u32;
let offence = pallet_babe::EquivocationOffence { let offence = pallet_babe::EquivocationOffence {
slot: 0u64.into(), slot: 0u64.into(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment