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

Companion: kusama whitelist pallet preimage dep upgrade #6392

Merged
merged 1 commit into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/kusama/src/governance/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,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 {
Expand Down
3 changes: 2 additions & 1 deletion runtime/kusama/src/weights/pallet_whitelist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down