Skip to content

Commit

Permalink
Merge pull request ethereum#13 from expanse-project/rebase-1.4.4
Browse files Browse the repository at this point in the history
fix jeth.go
  • Loading branch information
chrisfranko committed May 22, 2016
2 parents b118fda + 990f6f3 commit 58e1499
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/utils/jeth.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (self *Jeth) err(call otto.FunctionCall, code int, msg string, id interface
return res
}

// UnlockAccount asks the user for the password and than executes the jexp.UnlockAccount callback in the jsre.
// UnlockAccount asks the user for the password and than executes the jeth.UnlockAccount callback in the jsre.
// It will need the public address for the account to unlock as first argument.
// The second argument is an optional string with the password. If not given the user is prompted for the password.
// The third argument is an optional integer which specifies for how long the account will be unlocked (in seconds).
Expand Down Expand Up @@ -96,8 +96,8 @@ func (self *Jeth) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
duration = call.Argument(2)
}

// jexp.unlockAccount will send the request to the backend.
if val, err := call.Otto.Call("jexp.unlockAccount", nil, account, passwd, duration); err == nil {
// jeth.unlockAccount will send the request to the backend.
if val, err := call.Otto.Call("jeth.unlockAccount", nil, account, passwd, duration); err == nil {
return val
} else {
throwJSExeception(err.Error())
Expand All @@ -106,7 +106,7 @@ func (self *Jeth) UnlockAccount(call otto.FunctionCall) (response otto.Value) {
return otto.FalseValue()
}

// NewAccount asks the user for the password and than executes the jexp.newAccount callback in the jsre
// NewAccount asks the user for the password and than executes the jeth.newAccount callback in the jsre
func (self *Jeth) NewAccount(call otto.FunctionCall) (response otto.Value) {
var passwd string
if len(call.ArgumentList) == 0 {
Expand All @@ -131,7 +131,7 @@ func (self *Jeth) NewAccount(call otto.FunctionCall) (response otto.Value) {
return otto.FalseValue()
}

ret, err := call.Otto.Call("jexp.newAccount", nil, passwd)
ret, err := call.Otto.Call("jeth.newAccount", nil, passwd)
if err == nil {
return ret
}
Expand Down

0 comments on commit 58e1499

Please sign in to comment.