From 11a9da171d4067f3f190c256c0f565e9a37b6184 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Fri, 15 Apr 2022 15:30:20 +0200 Subject: [PATCH] chore: revert `keys add` ui change (#11648) --- client/keys/add.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/client/keys/add.go b/client/keys/add.go index f1af561c12..76d15b8b9a 100644 --- a/client/keys/add.go +++ b/client/keys/add.go @@ -298,15 +298,7 @@ func printCreate(cmd *cobra.Command, k *keyring.Record, showMnemonic bool, mnemo // print mnemonic unless requested not to. if showMnemonic { - if _, err := fmt.Fprintf( - cmd.ErrOrStderr(), - ` - *Important** write this mnemonic phrase in a safe place. - It is the only way to recover your account if you ever forget your password. - - %s - - `, mnemonic); err != nil { + if _, err := fmt.Fprintln(cmd.ErrOrStderr(), fmt.Sprintf("\n**Important** write this mnemonic phrase in a safe place.\nIt is the only way to recover your account if you ever forget your password.\n\n%s\n", mnemonic)); err != nil { return fmt.Errorf("failed to print mnemonic: %v", err) } }