changed send methods for backwards compatability in geth console
This commit is contained in:
committed by
Bas van Kervel
parent
a1a475fb92
commit
862117e4bd
@ -111,6 +111,7 @@ func (js *jsre) apiBindings(ipcpath string, f xeth.Frontend) {
|
||||
js.re.Set("jeth", struct{}{})
|
||||
t, _ := js.re.Get("jeth")
|
||||
jethObj := t.Object()
|
||||
|
||||
jethObj.Set("send", jeth.Send)
|
||||
jethObj.Set("sendAsync", jeth.Send)
|
||||
|
||||
|
@ -307,8 +307,8 @@ func console(ctx *cli.Context) {
|
||||
repl := newJSRE(
|
||||
ethereum,
|
||||
ctx.String(utils.JSpathFlag.Name),
|
||||
ctx.GlobalString(utils.IPCPathFlag.Name),
|
||||
ctx.GlobalString(utils.RPCCORSDomainFlag.Name),
|
||||
ctx.GlobalString(utils.IPCPathFlag.Name),
|
||||
true,
|
||||
nil,
|
||||
)
|
||||
@ -329,8 +329,8 @@ func execJSFiles(ctx *cli.Context) {
|
||||
repl := newJSRE(
|
||||
ethereum,
|
||||
ctx.String(utils.JSpathFlag.Name),
|
||||
ctx.GlobalString(utils.IPCPathFlag.Name),
|
||||
ctx.GlobalString(utils.RPCCORSDomainFlag.Name),
|
||||
ctx.GlobalString(utils.IPCPathFlag.Name),
|
||||
false,
|
||||
nil,
|
||||
)
|
||||
|
Reference in New Issue
Block a user