aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-06-08 19:21:24 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:01:39 +0800
commit862117e4bdcc5d255fc85fc35e223eec10f0ac7b (patch)
tree2fcfe6b215753007d788db55d02896c0918fe976 /cmd/geth
parenta1a475fb9296e214292840d89811123292c7953c (diff)
downloadgo-tangerine-862117e4bdcc5d255fc85fc35e223eec10f0ac7b.tar
go-tangerine-862117e4bdcc5d255fc85fc35e223eec10f0ac7b.tar.gz
go-tangerine-862117e4bdcc5d255fc85fc35e223eec10f0ac7b.tar.bz2
go-tangerine-862117e4bdcc5d255fc85fc35e223eec10f0ac7b.tar.lz
go-tangerine-862117e4bdcc5d255fc85fc35e223eec10f0ac7b.tar.xz
go-tangerine-862117e4bdcc5d255fc85fc35e223eec10f0ac7b.tar.zst
go-tangerine-862117e4bdcc5d255fc85fc35e223eec10f0ac7b.zip
changed send methods for backwards compatability in geth console
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/js.go1
-rw-r--r--cmd/geth/main.go4
2 files changed, 3 insertions, 2 deletions
diff --git a/cmd/geth/js.go b/cmd/geth/js.go
index d1a6cc29d..7e6e10ca9 100644
--- a/cmd/geth/js.go
+++ b/cmd/geth/js.go
@@ -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)
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 5d7e102c4..8e55b310c 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -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,
)