forked from TrueCloudLab/frostfs-node
[#1498] neofs-adm: Save wallets as pretty JSON
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
9e430abf83
commit
3db4526437
2 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ func initializeWallets(v *viper.Viper, walletDir string, size int) ([]string, er
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, w := range wallets {
|
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)
|
return nil, fmt.Errorf("can't save wallet: %w", err)
|
||||||
}
|
}
|
||||||
w.Close()
|
w.Close()
|
||||||
|
|
|
@ -42,7 +42,7 @@ func initializeContractWallet(v *viper.Viper, walletDir string) (*wallet.Wallet,
|
||||||
}
|
}
|
||||||
|
|
||||||
w.AddAccount(acc)
|
w.AddAccount(acc)
|
||||||
if err := w.Save(); err != nil {
|
if err := w.SavePretty(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue