mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 09:29:38 +00:00
parent
19e4c679d3
commit
79f377d0f0
1 changed files with 3 additions and 0 deletions
|
@ -318,6 +318,9 @@ func changePassword(ctx *cli.Context) error {
|
|||
if err != nil {
|
||||
return cli.NewExitError(err, 1)
|
||||
}
|
||||
if len(wall.Accounts) == 0 {
|
||||
return cli.NewExitError("wallet has no accounts", 1)
|
||||
}
|
||||
addrFlag := ctx.Generic("address").(*flags.Address)
|
||||
if addrFlag.IsSet {
|
||||
// Check for account presence first before asking for password.
|
||||
|
|
Loading…
Reference in a new issue