Introduce OnSetCode type into system config trait. (#8496)

* Introduce OnSetCode type into system config trait.

* Docs.

* Fixes

* Fixes
This commit is contained in:
Gavin Wood authored and GitHub committed 2021-04-01 12:20:24 +00:00
1 parent 34458e9b9c
commit 643d2b669f
65 files changed
+85 -4

No files matched your search

@@ -49,6 +49,7 @@ impl system::Config for Test {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
}
impl pallet_template::Config for Test {
@@ -195,6 +195,8 @@ impl frame_system::Config for Runtime {
type SystemWeightInfo = ();
/// This is used as an identifier of the chain. 42 is the generic substrate prefix.
type SS58Prefix = SS58Prefix;
/// The set code logic, just the default since we're not a parachain.
type OnSetCode = ();
}
impl pallet_aura::Config for Runtime {
+1
View File
@@ -213,6 +213,7 @@ impl frame_system::Config for Runtime {
type OnKilledAccount = ();
type SystemWeightInfo = frame_system::weights::SubstrateWeight<Runtime>;
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
}
impl pallet_utility::Config for Runtime {