mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
canvas: Add sudo (#1010)
This commit is contained in:
committed by
GitHub
parent
d1a5414b59
commit
a2280507eb
@@ -372,6 +372,11 @@ impl pallet_collator_selection::Config for Runtime {
|
|||||||
type WeightInfo = pallet_collator_selection::weights::SubstrateWeight<Runtime>;
|
type WeightInfo = pallet_collator_selection::weights::SubstrateWeight<Runtime>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl pallet_sudo::Config for Runtime {
|
||||||
|
type Call = Call;
|
||||||
|
type Event = Event;
|
||||||
|
}
|
||||||
|
|
||||||
// Create the runtime by composing the FRAME pallets that were previously configured.
|
// Create the runtime by composing the FRAME pallets that were previously configured.
|
||||||
construct_runtime!(
|
construct_runtime!(
|
||||||
pub enum Runtime where
|
pub enum Runtime where
|
||||||
@@ -411,6 +416,9 @@ construct_runtime!(
|
|||||||
// Handy utilities.
|
// Handy utilities.
|
||||||
Utility: pallet_utility::{Pallet, Call, Event} = 50,
|
Utility: pallet_utility::{Pallet, Call, Event} = 50,
|
||||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 51,
|
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 51,
|
||||||
|
|
||||||
|
// Sudo
|
||||||
|
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Event<T>, Storage} = 100,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1083,5 +1083,10 @@ fn canvas_kusama_genesis(
|
|||||||
polkadot_xcm: canvas_kusama_runtime::PolkadotXcmConfig {
|
polkadot_xcm: canvas_kusama_runtime::PolkadotXcmConfig {
|
||||||
safe_xcm_version: Some(SAFE_XCM_VERSION),
|
safe_xcm_version: Some(SAFE_XCM_VERSION),
|
||||||
},
|
},
|
||||||
|
sudo: canvas_kusama_runtime::SudoConfig {
|
||||||
|
key: Some(
|
||||||
|
hex!["2681a28014e7d3a5bfb32a003b3571f53c408acbc28d351d6bf58f5028c4ef14"].into(),
|
||||||
|
),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user