[#1346] neofs-adm: do not ask password twice

When a contract wallet is created, there is no need to decrypt
newly-created accounts.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-05-04 10:45:08 +03:00 committed by LeL
parent 379c70cc90
commit 875f0e79a2
2 changed files with 4 additions and 4 deletions

View file

@ -6,6 +6,9 @@ Changelog for NeoFS Node
### Added
- Config examples for Inner ring application (#1358)
### Fixed
- Do not ask for contract wallet password twice (#1346)
## [0.28.1] - 2022-05-05
### Fixed

View file

@ -60,10 +60,7 @@ func openContractWallet(cmd *cobra.Command, walletDir string) (*wallet.Wallet, e
cmd.Printf("Contract group wallet is missing, initialize at %s\n",
filepath.Join(walletDir, contractWalletFilename))
w, err = initializeContractWallet(walletDir)
if err != nil {
return nil, err
}
return initializeContractWallet(walletDir)
}
password, err := getPassword(contractWalletPasswordKey, "Password for contract wallet > ")