From 80247dd86f4093fc12a01aa7a1edd68a3cf85cec Mon Sep 17 00:00:00 2001 From: Sorawit Suriyakarn Date: Tue, 21 Apr 2020 22:22:44 +0700 Subject: [PATCH] Merge PR #6038: Use CoinType from config as the default coin type --- client/keys/add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/keys/add.go b/client/keys/add.go index 1e136ddf3..00ea46be4 100644 --- a/client/keys/add.go +++ b/client/keys/add.go @@ -75,7 +75,7 @@ the flag --nosort is set. cmd.Flags().Bool(flagNoBackup, false, "Don't print out seed phrase (if others are watching the terminal)") cmd.Flags().Bool(flags.FlagDryRun, false, "Perform action, but don't add key to local keystore") cmd.Flags().String(flagHDPath, "", "Manual HD Path derivation (overrides BIP44 config)") - cmd.Flags().Uint32(flagCoinType, sdk.CoinType, "coin type number for HD derivation") + cmd.Flags().Uint32(flagCoinType, sdk.GetConfig().GetCoinType(), "coin type number for HD derivation") cmd.Flags().Uint32(flagAccount, 0, "Account number for HD derivation") cmd.Flags().Uint32(flagIndex, 0, "Address index number for HD derivation") cmd.Flags().Bool(flags.FlagIndentResponse, false, "Add indent to JSON response")