diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-11-24 16:37:29 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-11-26 20:38:53 +0800 |
commit | b1e014344494d2713f6091299a5b86dc53e1fb4e (patch) | |
tree | f40651917362c3a70160011f87808f62c37ecee3 /cmd/geth/js.go | |
parent | 6bb29aebeefc64c765f0a2b5ab66f85d928f56cd (diff) | |
download | dexon-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar dexon-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.gz dexon-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.bz2 dexon-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.lz dexon-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.xz dexon-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.zst dexon-b1e014344494d2713f6091299a5b86dc53e1fb4e.zip |
cmd, crypto: fixed nil public keys and updated web3
Diffstat (limited to 'cmd/geth/js.go')
-rw-r--r-- | cmd/geth/js.go | 4 |
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) } |