From bc8d5ecdcac0fbf39b7512e3efe2642639a68f1a Mon Sep 17 00:00:00 2001 From: Guantong Date: Tue, 10 Jan 2023 16:22:18 +0800 Subject: [PATCH] Companion for paritytech/substrate#11649, paritytech/polkadot#5729 preimage --- runtime/crab/src/pallets/preimage.rs | 3 +-- runtime/darwinia/src/pallets/preimage.rs | 3 +-- runtime/pangolin/src/pallets/preimage.rs | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/runtime/crab/src/pallets/preimage.rs b/runtime/crab/src/pallets/preimage.rs index 4fa3a584..514fc7f9 100644 --- a/runtime/crab/src/pallets/preimage.rs +++ b/runtime/crab/src/pallets/preimage.rs @@ -23,8 +23,7 @@ impl pallet_preimage::Config for Runtime { type BaseDeposit = ConstU128<{ 500 * UNIT }>; type ByteDeposit = ConstU128<{ darwinia_deposit(0, 1) }>; type Currency = Balances; - type ManagerOrigin = Root; - type MaxSize = ConstU32<{ 4096 * 1024 }>; type RuntimeEvent = RuntimeEvent; type WeightInfo = (); + type ManagerOrigin = EnsureRoot; } diff --git a/runtime/darwinia/src/pallets/preimage.rs b/runtime/darwinia/src/pallets/preimage.rs index 4fa3a584..514fc7f9 100644 --- a/runtime/darwinia/src/pallets/preimage.rs +++ b/runtime/darwinia/src/pallets/preimage.rs @@ -23,8 +23,7 @@ impl pallet_preimage::Config for Runtime { type BaseDeposit = ConstU128<{ 500 * UNIT }>; type ByteDeposit = ConstU128<{ darwinia_deposit(0, 1) }>; type Currency = Balances; - type ManagerOrigin = Root; - type MaxSize = ConstU32<{ 4096 * 1024 }>; type RuntimeEvent = RuntimeEvent; type WeightInfo = (); + type ManagerOrigin = EnsureRoot; } diff --git a/runtime/pangolin/src/pallets/preimage.rs b/runtime/pangolin/src/pallets/preimage.rs index 4fa3a584..514fc7f9 100644 --- a/runtime/pangolin/src/pallets/preimage.rs +++ b/runtime/pangolin/src/pallets/preimage.rs @@ -23,8 +23,7 @@ impl pallet_preimage::Config for Runtime { type BaseDeposit = ConstU128<{ 500 * UNIT }>; type ByteDeposit = ConstU128<{ darwinia_deposit(0, 1) }>; type Currency = Balances; - type ManagerOrigin = Root; - type MaxSize = ConstU32<{ 4096 * 1024 }>; type RuntimeEvent = RuntimeEvent; type WeightInfo = (); + type ManagerOrigin = EnsureRoot; }