From aebe87ee30592ebba4fd1889793729ac814d402c Mon Sep 17 00:00:00 2001
From: Muharem Ismailov <ismailov.m.h@gmail.com>
Date: Tue, 6 Dec 2022 15:51:16 +0100
Subject: [PATCH] kusama whitelist pallet preimage dep upgrade (#6392)

---
 polkadot/runtime/kusama/src/governance/mod.rs           | 2 +-
 polkadot/runtime/kusama/src/weights/pallet_whitelist.rs | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/polkadot/runtime/kusama/src/governance/mod.rs b/polkadot/runtime/kusama/src/governance/mod.rs
index b6e80a81772..460aaaed4b9 100644
--- a/polkadot/runtime/kusama/src/governance/mod.rs
+++ b/polkadot/runtime/kusama/src/governance/mod.rs
@@ -72,7 +72,7 @@ impl pallet_whitelist::Config for Runtime {
 	type WhitelistOrigin =
 		EitherOf<EnsureRootWithSuccess<Self::AccountId, ConstU16<65535>>, Fellows>;
 	type DispatchWhitelistedOrigin = EitherOf<EnsureRoot<Self::AccountId>, WhitelistedCaller>;
-	type PreimageProvider = Preimage;
+	type Preimages = Preimage;
 }
 
 impl pallet_referenda::Config for Runtime {
diff --git a/polkadot/runtime/kusama/src/weights/pallet_whitelist.rs b/polkadot/runtime/kusama/src/weights/pallet_whitelist.rs
index 5e7dcf8f75b..401ffb48f4d 100644
--- a/polkadot/runtime/kusama/src/weights/pallet_whitelist.rs
+++ b/polkadot/runtime/kusama/src/weights/pallet_whitelist.rs
@@ -63,7 +63,8 @@ impl<T: frame_system::Config> pallet_whitelist::WeightInfo for WeightInfo<T> {
 	// Storage: Whitelist WhitelistedCall (r:1 w:1)
 	// Storage: Preimage PreimageFor (r:1 w:1)
 	// Storage: Preimage StatusFor (r:1 w:1)
-	fn dispatch_whitelisted_call() -> Weight {
+	// TODO regenerate
+	fn dispatch_whitelisted_call(_n: u32) -> Weight {
 		Weight::from_ref_time(7_327_364_000 as u64)
 			.saturating_add(T::DbWeight::get().reads(3 as u64))
 			.saturating_add(T::DbWeight::get().writes(3 as u64))
-- 
GitLab