Skip to content

Commit

Permalink
Fix ss58 prefixes of Polkadot, Kusama and Westend used by relay (pari…
Browse files Browse the repository at this point in the history
…tytech#1298)

* fix ss58 prefixes of Polkadot, Kusama and Westend

* fmt
  • Loading branch information
svyatonik authored and serban300 committed Apr 9, 2024
1 parent 25a3b84 commit 0b50ccb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion bridges/relays/bin-substrate/src/chains/kusama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 4 additions & 1 deletion bridges/relays/bin-substrate/src/chains/polkadot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 4 additions & 1 deletion bridges/relays/bin-substrate/src/chains/westend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0b50ccb

Please sign in to comment.