Skip to content

Commit

Permalink
Fix the default ss58 version (#394)
Browse files Browse the repository at this point in the history
`id` of ChainX mainnet is _chainx_.
  • Loading branch information
liuchengxu authored Nov 26, 2020
1 parent b774ba1 commit a6f9a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ fn set_default_ss58_version(spec: &Box<dyn sc_service::ChainSpec>) {
use sp_core::crypto::Ss58AddressFormat;
// this `id()` is from `ChainSpec::from_genesis()` second parameter
// todo may use a better way
let version: Ss58AddressFormat = if spec.id().contains("mainnet") {
let version: Ss58AddressFormat = if spec.id() == "chainx" {
Ss58AddressFormat::ChainXAccount
} else {
Ss58AddressFormat::SubstrateAccount
Expand Down

0 comments on commit a6f9a63

Please sign in to comment.