Unverified Commit 2ad8c5cf authored by Alexander Theißen's avatar Alexander Theißen Committed by GitHub
Browse files

Companion for #7810 (Define ss58 prefix inside the runtime) (#2182)

* Companion for #7810

* Added missing trait items for tests

* Add another missing trait item

* fixup

* "Update Substrate"

Co-authored-by: parity-processbot <>
parent 4e73c1d3
Pipeline #118426 passed with stages
in 31 minutes and 33 seconds
This diff is collapsed.
......@@ -265,10 +265,6 @@ impl sp_externalities::Externalities for ValidationExternalities {
panic!("place_child_storage: unsupported feature for parachain validation")
}
fn chain_id(&self) -> u64 {
panic!("chain_id: unsupported feature for parachain validation")
}
fn storage_root(&mut self) -> Vec<u8> {
panic!("storage_root: unsupported feature for parachain validation")
}
......
......@@ -653,6 +653,7 @@ mod tests {
type OnNewAccount = ();
type OnKilledAccount = Balances;
type SystemWeightInfo = ();
type SS58Prefix = ();
}
parameter_types! {
......
......@@ -618,6 +618,7 @@ mod tests {
type OnNewAccount = ();
type OnKilledAccount = Balances;
type SystemWeightInfo = ();
type SS58Prefix = ();
}
parameter_types! {
pub const ExistentialDeposit: u64 = 1;
......
......@@ -126,6 +126,7 @@ mod tests {
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
}
impl pallet_balances::Config for Test {
......
......@@ -236,6 +236,7 @@ mod multiplier_tests {
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
}
type System = frame_system::Module<Runtime>;
......
......@@ -331,6 +331,7 @@ mod tests {
type OnNewAccount = ();
type OnKilledAccount = Balances;
type SystemWeightInfo = ();
type SS58Prefix = ();
}
impl<C> frame_system::offchain::SendTransactionTypes<C> for Test where
......
......@@ -447,6 +447,7 @@ mod tests {
type OnNewAccount = ();
type OnKilledAccount = Balances;
type SystemWeightInfo = ();
type SS58Prefix = ();
}
parameter_types! {
......
......@@ -984,6 +984,7 @@ mod tests {
type OnNewAccount = ();
type OnKilledAccount = Balances;
type SystemWeightInfo = ();
type SS58Prefix = ();
}
parameter_types! {
......
......@@ -124,6 +124,7 @@ type MoreThanHalfCouncil = EnsureOneOf<
parameter_types! {
pub const Version: RuntimeVersion = VERSION;
pub const SS58Prefix: u8 = 2;
}
impl frame_system::Config for Runtime {
......@@ -148,6 +149,7 @@ impl frame_system::Config for Runtime {
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = weights::frame_system::WeightInfo<Runtime>;
type SS58Prefix = SS58Prefix;
}
parameter_types! {
......
......@@ -90,6 +90,7 @@ impl frame_system::Config for Test {
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
}
impl crate::initializer::Config for Test {
......
......@@ -138,6 +138,7 @@ type MoreThanHalfCouncil = EnsureOneOf<
parameter_types! {
pub const Version: RuntimeVersion = VERSION;
pub const SS58Prefix: u8 = 0;
}
impl frame_system::Config for Runtime {
......@@ -162,6 +163,7 @@ impl frame_system::Config for Runtime {
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = weights::frame_system::WeightInfo<Runtime>;
type SS58Prefix = SS58Prefix;
}
parameter_types! {
......
......@@ -220,6 +220,7 @@ impl Filter<Call> for BaseFilter {
parameter_types! {
pub const Version: RuntimeVersion = VERSION;
pub const SS58Prefix: u8 = 42;
}
impl frame_system::Config for Runtime {
......@@ -244,6 +245,7 @@ impl frame_system::Config for Runtime {
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = SS58Prefix;
}
parameter_types! {
......
......@@ -121,6 +121,7 @@ sp_api::decl_runtime_apis! {
parameter_types! {
pub const Version: RuntimeVersion = VERSION;
pub const SS58Prefix: u8 = 42;
}
impl frame_system::Config for Runtime {
......@@ -145,6 +146,7 @@ impl frame_system::Config for Runtime {
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = SS58Prefix;
}
impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime where
......
......@@ -115,6 +115,7 @@ impl Filter<Call> for BaseFilter {
parameter_types! {
pub const Version: RuntimeVersion = VERSION;
pub const SS58Prefix: u8 = 42;
}
impl frame_system::Config for Runtime {
......@@ -139,6 +140,7 @@ impl frame_system::Config for Runtime {
type OnNewAccount = ();
type OnKilledAccount = ();
type SystemWeightInfo = weights::frame_system::WeightInfo<Runtime>;
type SS58Prefix = SS58Prefix;
}
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