Fix ss58 prefixes of Polkadot, Kusama and Westend used by relay (#1298)

* fix ss58 prefixes of Polkadot, Kusama and Westend

* fmt
This commit is contained in:
Svyatoslav Nikolsky
2022-01-31 14:44:04 +03:00
committed by Bastian Köcher
parent cb20c10bdb
commit c0f6509d40
3 changed files with 12 additions and 3 deletions
@@ -81,7 +81,10 @@ impl CliChain for Kusama {
type MessagePayload = (); type MessagePayload = ();
fn ss58_format() -> u16 { fn ss58_format() -> u16 {
42 sp_core::crypto::Ss58AddressFormat::from(
sp_core::crypto::Ss58AddressFormatRegistry::KusamaAccount,
)
.into()
} }
fn encode_message( fn encode_message(
@@ -81,7 +81,10 @@ impl CliChain for Polkadot {
type MessagePayload = (); type MessagePayload = ();
fn ss58_format() -> u16 { fn ss58_format() -> u16 {
42 sp_core::crypto::Ss58AddressFormat::from(
sp_core::crypto::Ss58AddressFormatRegistry::PolkadotAccount,
)
.into()
} }
fn encode_message( fn encode_message(
@@ -28,7 +28,10 @@ impl CliChain for Westend {
type MessagePayload = (); type MessagePayload = ();
fn ss58_format() -> u16 { fn ss58_format() -> u16 {
42 sp_core::crypto::Ss58AddressFormat::from(
sp_core::crypto::Ss58AddressFormatRegistry::SubstrateAccount,
)
.into()
} }
fn encode_message( fn encode_message(