Skip to content

Commit caec3f7

Browse files
Apply suggestions from code review
Co-authored-by: John Jannotti <jannotti@gmail.com>
1 parent 57e6518 commit caec3f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/goal/messages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const (
174174
infoPasswordConfirmation = "Please confirm the password: "
175175
infoCreatingWallet = "Creating wallet..."
176176
infoCreatedWallet = "Created wallet '%s'"
177-
infoSkipPassword = "Skipping password prompt"
177+
infoUnencrypted = "Creating unencrypted wallet"
178178
infoBackupExplanation = "Your new wallet has a backup phrase that can be used for recovery.\nKeeping this backup phrase safe is extremely important.\nWould you like to see it now? (Y/n): "
179179
infoPrintedBackupPhrase = "Your backup phrase is printed below.\nKeep this information safe -- never share it with anyone!"
180180
infoBackupPhrase = "\n%s"

cmd/goal/wallet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func init() {
4747

4848
// Should we recover the wallet?
4949
newWalletCmd.Flags().BoolVarP(&recoverWallet, "recover", "r", false, "Recover the wallet from the backup mnemonic provided at wallet creation (NOT the mnemonic provided by goal account export or by algokey). Regenerate accounts in the wallet with `goal account new`")
50-
newWalletCmd.Flags().BoolVar(&createUnencryptedWallet, "unencrypted", false, "Create a new wallet without prompting for password.")
50+
newWalletCmd.Flags().BoolVar(&createUnencryptedWallet, "unencrypted", false, "Create a new wallet without a password.")
5151
newWalletCmd.Flags().BoolVar(&noDisplaySeed, "no-display-seed", false, "Create a new wallet without displaying the seed phrase.")
5252
}
5353

@@ -120,7 +120,7 @@ var newWalletCmd = &cobra.Command{
120120
walletPassword := []byte{}
121121

122122
if createUnencryptedWallet {
123-
reportInfoln(infoSkipPassword)
123+
reportInfoln(infoUnencrypted)
124124
} else {
125125
// Fetch a password for the wallet
126126
fmt.Printf(infoChoosePasswordPrompt, walletName)

0 commit comments

Comments
 (0)