cmd/utils: fix personal.unlockAccount rebase issue

This commit is contained in:
Felix Lange 2016-04-12 17:01:25 +02:00
parent 6498df7b02
commit cf4f3e5c75

View file

@ -77,9 +77,8 @@ func (self *Jeth) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
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())
passwd, _ = otto.ToValue(input)
}
} else {
if !call.Argument(1).IsString() {