Skip to content

Commit

Permalink
Update add.go
Browse files Browse the repository at this point in the history
  • Loading branch information
SecretSaturn authored and Cashmaney committed Mar 16, 2022
1 parent e9efe4d commit 5c7c1fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/keys/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 5c7c1fd

Please sign in to comment.