forked from TrueCloudLab/neoneo-go
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 {
|
if err != nil {
|
||||||
return cli.NewExitError(err, 1)
|
return cli.NewExitError(err, 1)
|
||||||
}
|
}
|
||||||
|
if len(wall.Accounts) == 0 {
|
||||||
|
return cli.NewExitError("wallet has no accounts", 1)
|
||||||
|
}
|
||||||
addrFlag := ctx.Generic("address").(*flags.Address)
|
addrFlag := ctx.Generic("address").(*flags.Address)
|
||||||
if addrFlag.IsSet {
|
if addrFlag.IsSet {
|
||||||
// Check for account presence first before asking for password.
|
// Check for account presence first before asking for password.
|
||||||
|
|
Loading…
Reference in a new issue