@@ -77,7 +77,7 @@ the flag --nosort is set.
7777 cmd .Flags ().Bool (flagNoBackup , false , "Don't print out seed phrase (if others are watching the terminal)" )
7878 cmd .Flags ().Bool (flagDryRun , false , "Perform action, but don't add key to local keystore" )
7979 cmd .Flags ().Uint32 (flagAccount , 0 , "Account number for HD derivation" )
80- cmd .Flags ().Uint32 (flagIndex , 0 , "Index number for HD derivation" )
80+ cmd .Flags ().Uint32 (flagIndex , 0 , "Address index number for HD derivation" )
8181 return cmd
8282}
8383
@@ -104,7 +104,7 @@ func runAddCmd(_ *cobra.Command, args []string) error {
104104 if viper .GetBool (flagDryRun ) {
105105 // we throw this away, so don't enforce args,
106106 // we want to get a new random seed phrase quickly
107- kb = client . MockKeyBase ()
107+ kb = keys . NewInMemory ()
108108 encryptPassword = app .DefaultKeyPass
109109 } else {
110110 kb , err = NewKeyBaseFromHomeFlag ()
@@ -309,7 +309,7 @@ func printCreate(info keys.Info, showMnemonic bool, mnemonic string) error {
309309
310310// function to just create a new seed to display in the UI before actually persisting it in the keybase
311311func generateMnemonic (algo keys.SigningAlgo ) string {
312- kb := client . MockKeyBase ()
312+ kb := keys . NewInMemory ()
313313 pass := app .DefaultKeyPass
314314 name := "inmemorykey"
315315 _ , seed , _ := kb .CreateMnemonic (name , keys .English , pass , algo )
0 commit comments