From b1e014344494d2713f6091299a5b86dc53e1fb4e Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Tue, 24 Nov 2015 09:37:29 +0100 Subject: cmd, crypto: fixed nil public keys and updated web3 --- cmd/geth/js.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/geth') 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) } -- cgit