Skip to content

Commit

Permalink
validator/accounts restore new validator account creation
Browse files Browse the repository at this point in the history
  • Loading branch information
q9f committed Apr 27, 2020
1 parent 91f90e1 commit 0622e35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validator/accounts/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ func CreateValidatorAccount(path string, passphrase string) (string, string, err
if text = strings.Replace(text, "\n", "", -1); text != "" {
path = text
}
if err := NewValidatorAccount(path, passphrase); err != nil {
return "", "", errors.Wrapf(err, "could not initialize validator account")
}
}
if err := NewValidatorAccount(path, passphrase); err != nil {
return "", "", errors.Wrapf(err, "could not initialize validator account")
}
return path, passphrase, nil
}
Expand Down

0 comments on commit 0622e35

Please sign in to comment.