[#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:
parent
379c70cc90
commit
875f0e79a2
2 changed files with 4 additions and 4 deletions
|
@ -6,6 +6,9 @@ Changelog for NeoFS Node
|
||||||
### Added
|
### Added
|
||||||
- Config examples for Inner ring application (#1358)
|
- Config examples for Inner ring application (#1358)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Do not ask for contract wallet password twice (#1346)
|
||||||
|
|
||||||
## [0.28.1] - 2022-05-05
|
## [0.28.1] - 2022-05-05
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -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",
|
cmd.Printf("Contract group wallet is missing, initialize at %s\n",
|
||||||
filepath.Join(walletDir, contractWalletFilename))
|
filepath.Join(walletDir, contractWalletFilename))
|
||||||
w, err = initializeContractWallet(walletDir)
|
return initializeContractWallet(walletDir)
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
password, err := getPassword(contractWalletPasswordKey, "Password for contract wallet > ")
|
password, err := getPassword(contractWalletPasswordKey, "Password for contract wallet > ")
|
||||||
|
|
Loading…
Reference in a new issue