Unverified Commit d77262d6 authored by Gavin Wood's avatar Gavin Wood Committed by GitHub
Browse files

Companion for OnSetCode #8496 (#2794)

* Make build with OnSetCode

* Fixes

* update Substrate

Co-authored-by: parity-processbot <>
parent e8050450
Pipeline #132280 failed with stages
in 15 minutes and 43 seconds
This diff is collapsed.
...@@ -199,6 +199,7 @@ impl frame_system::Config for Runtime { ...@@ -199,6 +199,7 @@ impl frame_system::Config for Runtime {
type DbWeight = DbWeight; type DbWeight = DbWeight;
/// The designated SS58 prefix of this chain. /// The designated SS58 prefix of this chain.
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type OnSetCode = ();
} }
impl pallet_aura::Config for Runtime { impl pallet_aura::Config for Runtime {
......
...@@ -207,6 +207,7 @@ impl frame_system::Config for Runtime { ...@@ -207,6 +207,7 @@ impl frame_system::Config for Runtime {
type DbWeight = DbWeight; type DbWeight = DbWeight;
/// The designated SS58 prefix of this chain. /// The designated SS58 prefix of this chain.
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type OnSetCode = ();
} }
impl pallet_aura::Config for Runtime { impl pallet_aura::Config for Runtime {
......
...@@ -486,6 +486,7 @@ mod tests { ...@@ -486,6 +486,7 @@ mod tests {
type BlockLength = (); type BlockLength = ();
type DbWeight = (); type DbWeight = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
impl Config for TestRuntime { impl Config for TestRuntime {
......
...@@ -361,6 +361,7 @@ mod tests { ...@@ -361,6 +361,7 @@ mod tests {
type BlockLength = (); type BlockLength = ();
type DbWeight = (); type DbWeight = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
impl Config for TestRuntime { impl Config for TestRuntime {
......
...@@ -79,6 +79,7 @@ impl frame_system::Config for TestRuntime { ...@@ -79,6 +79,7 @@ impl frame_system::Config for TestRuntime {
type BlockLength = (); type BlockLength = ();
type DbWeight = (); type DbWeight = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
...@@ -77,6 +77,7 @@ impl frame_system::Config for TestRuntime { ...@@ -77,6 +77,7 @@ impl frame_system::Config for TestRuntime {
type BlockWeights = (); type BlockWeights = ();
type BlockLength = (); type BlockLength = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
impl pallet_substrate_bridge::Config for TestRuntime { impl pallet_substrate_bridge::Config for TestRuntime {
......
...@@ -100,6 +100,7 @@ impl frame_system::Config for TestRuntime { ...@@ -100,6 +100,7 @@ impl frame_system::Config for TestRuntime {
type BlockLength = (); type BlockLength = ();
type DbWeight = (); type DbWeight = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
...@@ -145,6 +145,7 @@ mod tests { ...@@ -145,6 +145,7 @@ mod tests {
type BlockLength = (); type BlockLength = ();
type DbWeight = (); type DbWeight = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
...@@ -82,6 +82,7 @@ impl frame_system::Config for TestRuntime { ...@@ -82,6 +82,7 @@ impl frame_system::Config for TestRuntime {
type BlockWeights = (); type BlockWeights = ();
type BlockLength = (); type BlockLength = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
impl Config for TestRuntime { impl Config for TestRuntime {
......
...@@ -662,6 +662,7 @@ mod tests { ...@@ -662,6 +662,7 @@ mod tests {
type OnKilledAccount = (); type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
...@@ -657,6 +657,7 @@ mod tests { ...@@ -657,6 +657,7 @@ mod tests {
type OnKilledAccount = (); type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
...@@ -747,6 +747,7 @@ mod tests { ...@@ -747,6 +747,7 @@ mod tests {
type OnKilledAccount = (); type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
...@@ -127,6 +127,7 @@ mod tests { ...@@ -127,6 +127,7 @@ mod tests {
type OnKilledAccount = (); type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
impl pallet_balances::Config for Test { impl pallet_balances::Config for Test {
......
...@@ -107,6 +107,7 @@ impl frame_system::Config for Test { ...@@ -107,6 +107,7 @@ impl frame_system::Config for Test {
type OnKilledAccount = (); type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
...@@ -250,6 +250,7 @@ mod multiplier_tests { ...@@ -250,6 +250,7 @@ mod multiplier_tests {
type OnKilledAccount = (); type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
fn run_with_system_weight<F>(w: Weight, mut assertions: F) where F: FnMut() -> () { fn run_with_system_weight<F>(w: Weight, mut assertions: F) where F: FnMut() -> () {
......
...@@ -466,6 +466,7 @@ mod tests { ...@@ -466,6 +466,7 @@ mod tests {
type OnKilledAccount = (); type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
...@@ -449,6 +449,7 @@ mod tests { ...@@ -449,6 +449,7 @@ mod tests {
type OnKilledAccount = (); type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
...@@ -502,6 +502,7 @@ mod tests { ...@@ -502,6 +502,7 @@ mod tests {
type OnKilledAccount = (); type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
...@@ -159,6 +159,7 @@ impl frame_system::Config for Runtime { ...@@ -159,6 +159,7 @@ impl frame_system::Config for Runtime {
type OnKilledAccount = (); type OnKilledAccount = ();
type SystemWeightInfo = weights::frame_system::WeightInfo<Runtime>; type SystemWeightInfo = weights::frame_system::WeightInfo<Runtime>;
type SS58Prefix = SS58Prefix; type SS58Prefix = SS58Prefix;
type OnSetCode = ();
} }
parameter_types! { parameter_types! {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment