Companion for OnSetCode #8496 (#2794)

* Make build with OnSetCode

* Fixes

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Gavin Wood
2021-04-01 15:19:57 +02:00
committed by GitHub
parent 5b77a89874
commit a960e2ff6d
25 changed files with 176 additions and 154 deletions
+152 -154
View File
File diff suppressed because it is too large Load Diff
@@ -199,6 +199,7 @@ impl frame_system::Config for Runtime {
type DbWeight = DbWeight;
/// The designated SS58 prefix of this chain.
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
}
impl pallet_aura::Config for Runtime {
@@ -207,6 +207,7 @@ impl frame_system::Config for Runtime {
type DbWeight = DbWeight;
/// The designated SS58 prefix of this chain.
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
}
impl pallet_aura::Config for Runtime {
@@ -486,6 +486,7 @@ mod tests {
type BlockLength = ();
type DbWeight = ();
type SS58Prefix = ();
type OnSetCode = ();
}
impl Config for TestRuntime {
@@ -361,6 +361,7 @@ mod tests {
type BlockLength = ();
type DbWeight = ();
type SS58Prefix = ();
type OnSetCode = ();
}
impl Config for TestRuntime {
@@ -79,6 +79,7 @@ impl frame_system::Config for TestRuntime {
type BlockLength = ();
type DbWeight = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
@@ -77,6 +77,7 @@ impl frame_system::Config for TestRuntime {
type BlockWeights = ();
type BlockLength = ();
type SS58Prefix = ();
type OnSetCode = ();
}
impl pallet_substrate_bridge::Config for TestRuntime {
@@ -100,6 +100,7 @@ impl frame_system::Config for TestRuntime {
type BlockLength = ();
type DbWeight = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
@@ -145,6 +145,7 @@ mod tests {
type BlockLength = ();
type DbWeight = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
@@ -82,6 +82,7 @@ impl frame_system::Config for TestRuntime {
type BlockWeights = ();
type BlockLength = ();
type SS58Prefix = ();
type OnSetCode = ();
}
impl Config for TestRuntime {
+1
View File
@@ -662,6 +662,7 @@ mod tests {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -657,6 +657,7 @@ mod tests {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -747,6 +747,7 @@ mod tests {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -127,6 +127,7 @@ mod tests {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
impl pallet_balances::Config for Test {
@@ -107,6 +107,7 @@ impl frame_system::Config for Test {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -250,6 +250,7 @@ mod multiplier_tests {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
fn run_with_system_weight<F>(w: Weight, mut assertions: F) where F: FnMut() -> () {
@@ -466,6 +466,7 @@ mod tests {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -449,6 +449,7 @@ mod tests {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -502,6 +502,7 @@ mod tests {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -159,6 +159,7 @@ impl frame_system::Config for Runtime {
type OnKilledAccount = ();
type SystemWeightInfo = weights::frame_system::WeightInfo<Runtime>;
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -84,6 +84,7 @@ impl frame_system::Config for Test {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -173,6 +173,7 @@ impl frame_system::Config for Runtime {
type OnKilledAccount = ();
type SystemWeightInfo = weights::frame_system::WeightInfo<Runtime>;
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -314,6 +314,7 @@ impl frame_system::Config for Runtime {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
}
parameter_types! {
+1
View File
@@ -151,6 +151,7 @@ impl frame_system::Config for Runtime {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
}
impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime where
+1
View File
@@ -151,6 +151,7 @@ impl frame_system::Config for Runtime {
type OnKilledAccount = ();
type SystemWeightInfo = weights::frame_system::WeightInfo<Runtime>;
type SS58Prefix = SS58Prefix;
type OnSetCode = ();
}
parameter_types! {