good morning!!!!

Skip to content
Snippets Groups Projects
Commit a1f1c404 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

cmd/utils: fix accounts merge error on console unlock

parent 1e9b504e
No related branches found
No related tags found
No related merge requests found
...@@ -76,10 +76,9 @@ func (self *Jeth) UnlockAccount(call otto.FunctionCall) (response otto.Value) { ...@@ -76,10 +76,9 @@ func (self *Jeth) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
if call.Argument(1).IsUndefined() || call.Argument(1).IsNull() { if call.Argument(1).IsUndefined() || call.Argument(1).IsNull() {
fmt.Printf("Unlock account %s\n", account) fmt.Printf("Unlock account %s\n", account)
if input, err := Stdin.PasswordPrompt("Passphrase: "); err != nil { if input, err := Stdin.PasswordPrompt("Passphrase: "); err != nil {
return otto.FalseValue()
passwd, _ = otto.ToValue(input)
} else {
throwJSExeception(err.Error()) throwJSExeception(err.Error())
} else {
passwd, _ = otto.ToValue(input)
} }
} else { } else {
if !call.Argument(1).IsString() { if !call.Argument(1).IsString() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment