Skip to content

Commit

Permalink
improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani authored and Pantani committed Dec 12, 2023
1 parent b7a4b36 commit b4fcdf0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions hermes/cmd/hermes_configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,11 @@ GetKey:
var mnemonic string
if !generateWallets {
if err := session.Ask(cliquiz.NewQuestion(
fmt.Sprintf("Chain %s doesn't have a default Hermes key. Type your mnemonic to continue or enter to generate a new one:", chainID),
fmt.Sprintf(
"Chain %s doesn't have a default Hermes key. Type your mnemonic to continue or type enter to generate a new one:",
chainID,
),
&mnemonic,
cliquiz.Required(),
)); err != nil {
return "", err
}
Expand All @@ -427,6 +429,11 @@ GetKey:
if err != nil {
return "", err
}
_ = session.Printf(
"%s %s",
color.Yellow.Sprint("New mnemonic generated:"),
color.Blue.Sprint(mnemonic),
)
}

if !bip39.IsMnemonicValid(mnemonic) {
Expand Down

0 comments on commit b4fcdf0

Please sign in to comment.