Skip to content

Commit

Permalink
Merge pull request #2446 from karalabe/console-unlock-fix
Browse files Browse the repository at this point in the history
cmd/utils: fix accounts merge error on console unlock
  • Loading branch information
fjl committed Apr 12, 2016
2 parents 1e9b504 + a1f1c40 commit f460b02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/utils/jeth.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ func (self *Jeth) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
if call.Argument(1).IsUndefined() || call.Argument(1).IsNull() {
fmt.Printf("Unlock account %s\n", account)
if input, err := Stdin.PasswordPrompt("Passphrase: "); err != nil {
return otto.FalseValue()
passwd, _ = otto.ToValue(input)
} else {
throwJSExeception(err.Error())
} else {
passwd, _ = otto.ToValue(input)
}
} else {
if !call.Argument(1).IsString() {
Expand Down

0 comments on commit f460b02

Please sign in to comment.