From 5c7c1fd526e9cf18965e0c58759f1f716475474f Mon Sep 17 00:00:00 2001 From: h3rt <94856309+SecretSaturn@users.noreply.github.com> Date: Thu, 13 Jan 2022 23:21:10 +0100 Subject: [PATCH] Update add.go --- client/keys/add.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/keys/add.go b/client/keys/add.go index 80d695e5f93b..6693b3811b8f 100644 --- a/client/keys/add.go +++ b/client/keys/add.go @@ -34,6 +34,9 @@ const ( // DefaultKeyPass contains the default key password for genesis transactions DefaultKeyPass = "12345678" + + // Default CoinType for Secret Ledger App + DefaultLedgerCoinType = 529 ) // AddKeyCommand defines a keys command to add a generated or recovered private key to keybase. @@ -208,7 +211,7 @@ func runAddCmd(ctx client.Context, cmd *cobra.Command, args []string, inBuf *buf if legacyHdPath { coinType = sdk.CoinType } else { - return errors.New("ledger does not currently support new coin type. Use the legacy hd path flag") + coinType = DefaultLedgerCoinType } bech32PrefixAccAddr := sdk.GetConfig().GetBech32AccountAddrPrefix()