From 990f6f38decbd60013152a052475367cd822e596 Mon Sep 17 00:00:00 2001 From: Christopher Franko Date: Sun, 22 May 2016 13:37:06 -0400 Subject: [PATCH] fix jeth.go --- cmd/utils/jeth.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/utils/jeth.go b/cmd/utils/jeth.go index c5b0c2c045f5..6857cbe090d5 100644 --- a/cmd/utils/jeth.go +++ b/cmd/utils/jeth.go @@ -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). @@ -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()) @@ -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 { @@ -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 }