mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 05:41:07 +00:00
Companion PR for ss58 crate (#3953)
* Companion PR for ss58 crate * cargo fmt * Rename * into() * into() * updating substrate (ideally use bot merge)
This commit is contained in:
@@ -534,7 +534,7 @@ async fn main() {
|
||||
match chain.to_lowercase().as_str() {
|
||||
"polkadot" | "development" => {
|
||||
sp_core::crypto::set_default_ss58_version(
|
||||
sp_core::crypto::Ss58AddressFormat::PolkadotAccount,
|
||||
sp_core::crypto::Ss58AddressFormatRegistry::PolkadotAccount.into(),
|
||||
);
|
||||
sub_tokens::dynamic::set_name("DOT");
|
||||
sub_tokens::dynamic::set_decimal_points(10_000_000_000);
|
||||
@@ -546,7 +546,7 @@ async fn main() {
|
||||
},
|
||||
"kusama" | "kusama-dev" => {
|
||||
sp_core::crypto::set_default_ss58_version(
|
||||
sp_core::crypto::Ss58AddressFormat::KusamaAccount,
|
||||
sp_core::crypto::Ss58AddressFormatRegistry::KusamaAccount.into(),
|
||||
);
|
||||
sub_tokens::dynamic::set_name("KSM");
|
||||
sub_tokens::dynamic::set_decimal_points(1_000_000_000_000);
|
||||
@@ -558,7 +558,7 @@ async fn main() {
|
||||
},
|
||||
"westend" => {
|
||||
sp_core::crypto::set_default_ss58_version(
|
||||
sp_core::crypto::Ss58AddressFormat::PolkadotAccount,
|
||||
sp_core::crypto::Ss58AddressFormatRegistry::PolkadotAccount.into(),
|
||||
);
|
||||
sub_tokens::dynamic::set_name("WND");
|
||||
sub_tokens::dynamic::set_decimal_points(1_000_000_000_000);
|
||||
|
||||
Reference in New Issue
Block a user