From 3db452643728186b66c67259e161a9daf85887e6 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 9 Jun 2022 11:53:31 +0300 Subject: [PATCH] [#1498] neofs-adm: Save wallets as pretty JSON Signed-off-by: Evgenii Stratonikov --- cmd/neofs-adm/internal/modules/morph/generate.go | 2 +- cmd/neofs-adm/internal/modules/morph/group.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/neofs-adm/internal/modules/morph/generate.go b/cmd/neofs-adm/internal/modules/morph/generate.go index 7b2b5ec608..76941c633b 100644 --- a/cmd/neofs-adm/internal/modules/morph/generate.go +++ b/cmd/neofs-adm/internal/modules/morph/generate.go @@ -109,7 +109,7 @@ func initializeWallets(v *viper.Viper, walletDir string, size int) ([]string, er } for _, w := range wallets { - if err := w.Save(); err != nil { + if err := w.SavePretty(); err != nil { return nil, fmt.Errorf("can't save wallet: %w", err) } w.Close() diff --git a/cmd/neofs-adm/internal/modules/morph/group.go b/cmd/neofs-adm/internal/modules/morph/group.go index 99ddd38f4a..ee887272ba 100644 --- a/cmd/neofs-adm/internal/modules/morph/group.go +++ b/cmd/neofs-adm/internal/modules/morph/group.go @@ -42,7 +42,7 @@ func initializeContractWallet(v *viper.Viper, walletDir string) (*wallet.Wallet, } w.AddAccount(acc) - if err := w.Save(); err != nil { + if err := w.SavePretty(); err != nil { return nil, err }