mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
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:
committed by
Bastian Köcher
parent
cb20c10bdb
commit
c0f6509d40
@@ -81,7 +81,10 @@ impl CliChain for Kusama {
|
||||
type MessagePayload = ();
|
||||
|
||||
fn ss58_format() -> u16 {
|
||||
42
|
||||
sp_core::crypto::Ss58AddressFormat::from(
|
||||
sp_core::crypto::Ss58AddressFormatRegistry::KusamaAccount,
|
||||
)
|
||||
.into()
|
||||
}
|
||||
|
||||
fn encode_message(
|
||||
|
||||
@@ -81,7 +81,10 @@ impl CliChain for Polkadot {
|
||||
type MessagePayload = ();
|
||||
|
||||
fn ss58_format() -> u16 {
|
||||
42
|
||||
sp_core::crypto::Ss58AddressFormat::from(
|
||||
sp_core::crypto::Ss58AddressFormatRegistry::PolkadotAccount,
|
||||
)
|
||||
.into()
|
||||
}
|
||||
|
||||
fn encode_message(
|
||||
|
||||
@@ -28,7 +28,10 @@ impl CliChain for Westend {
|
||||
type MessagePayload = ();
|
||||
|
||||
fn ss58_format() -> u16 {
|
||||
42
|
||||
sp_core::crypto::Ss58AddressFormat::from(
|
||||
sp_core::crypto::Ss58AddressFormatRegistry::SubstrateAccount,
|
||||
)
|
||||
.into()
|
||||
}
|
||||
|
||||
fn encode_message(
|
||||
|
||||
Reference in New Issue
Block a user