aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-11-24 16:37:29 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-11-26 20:38:53 +0800
commitb1e014344494d2713f6091299a5b86dc53e1fb4e (patch)
treef40651917362c3a70160011f87808f62c37ecee3 /cmd
parent6bb29aebeefc64c765f0a2b5ab66f85d928f56cd (diff)
downloadgo-tangerine-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar
go-tangerine-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.gz
go-tangerine-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.bz2
go-tangerine-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.lz
go-tangerine-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.xz
go-tangerine-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.zst
go-tangerine-b1e014344494d2713f6091299a5b86dc53e1fb4e.zip
cmd, crypto: fixed nil public keys and updated web3
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/js.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/geth/js.go b/cmd/geth/js.go
index 4d5462539..17f781f06 100644
--- a/cmd/geth/js.go
+++ b/cmd/geth/js.go
@@ -299,12 +299,12 @@ func (js *jsre) apiBindings(f xeth.Frontend) error {
utils.Fatalf("Error loading web3.js: %v", err)
}
- _, err = js.re.Run("var web3 = require('web3');")
+ _, err = js.re.Run("var Web3 = require('web3');")
if err != nil {
utils.Fatalf("Error requiring web3: %v", err)
}
- _, err = js.re.Run("web3.setProvider(jeth)")
+ _, err = js.re.Run("var web3 = new Web3(jeth);")
if err != nil {
utils.Fatalf("Error setting web3 provider: %v", err)
}