diff options
author | Felix Lange <fjl@twurst.com> | 2016-04-15 23:36:01 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-04-15 23:36:01 +0800 |
commit | e728aaca7249809a3d4a14f53aa288c91c340eba (patch) | |
tree | 664580e5e98388157039287a0cc679515d310fef /cmd | |
parent | 6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea (diff) | |
download | dexon-e728aaca7249809a3d4a14f53aa288c91c340eba.tar dexon-e728aaca7249809a3d4a14f53aa288c91c340eba.tar.gz dexon-e728aaca7249809a3d4a14f53aa288c91c340eba.tar.bz2 dexon-e728aaca7249809a3d4a14f53aa288c91c340eba.tar.lz dexon-e728aaca7249809a3d4a14f53aa288c91c340eba.tar.xz dexon-e728aaca7249809a3d4a14f53aa288c91c340eba.tar.zst dexon-e728aaca7249809a3d4a14f53aa288c91c340eba.zip |
rpc: move web3.js extensions to internal/web3ext
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/geth/js.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/geth/js.go b/cmd/geth/js.go index 95cf85e4b..767b513c1 100644 --- a/cmd/geth/js.go +++ b/cmd/geth/js.go @@ -32,6 +32,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/registrar" "github.com/ethereum/go-ethereum/eth" + "github.com/ethereum/go-ethereum/internal/web3ext" re "github.com/ethereum/go-ethereum/jsre" "github.com/ethereum/go-ethereum/node" "github.com/ethereum/go-ethereum/rpc" @@ -202,7 +203,7 @@ func (js *jsre) apiBindings() error { continue // manually mapped or ignore } - if jsFile, ok := rpc.WEB3Extensions[apiName]; ok { + if jsFile, ok := web3ext.Modules[apiName]; ok { if err = js.re.Compile(fmt.Sprintf("%s.js", apiName), jsFile); err == nil { shortcuts += fmt.Sprintf("var %s = web3.%s; ", apiName, apiName) } else { |