forked from TrueCloudLab/frostfs-node
[#1379] neofs-cli: Bind key-related arguments to viper
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
a198a4858c
commit
cd46a7478e
3 changed files with 14 additions and 7 deletions
|
@ -151,7 +151,7 @@ func getKey() (*ecdsa.PrivateKey, error) {
|
|||
}
|
||||
|
||||
func getKeyNoGenerate() (*ecdsa.PrivateKey, error) {
|
||||
return key.Get(viper.GetString(commonflags.WalletPath), viper.GetString(commonflags.Account))
|
||||
return key.Get()
|
||||
}
|
||||
|
||||
type clientWithKey interface {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue