[#1498] neofs-adm: Save wallets as pretty JSON

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-06-09 11:53:31 +03:00 committed by fyrchik
parent 9e430abf83
commit 3db4526437
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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
}