mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
Merge cf4f3e5c75 into 1e9b504ee7
This commit is contained in:
commit
1584c5c886
1 changed files with 1 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue