aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/js_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-10-28 17:49:53 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-10-28 17:49:53 +0800
commit05f74077fb1bc23937f3b25fd4e826dcf5789212 (patch)
treee1fca4dd2efc253b00e2d39c3c554de87f8b78f9 /cmd/geth/js_test.go
parent2e4fdce74334206dd4341028594bcef140d00b92 (diff)
parent4d005a2c1d2929dc770acd3a2bfed59495c70557 (diff)
downloadgo-tangerine-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar
go-tangerine-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar.gz
go-tangerine-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar.bz2
go-tangerine-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar.lz
go-tangerine-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar.xz
go-tangerine-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar.zst
go-tangerine-05f74077fb1bc23937f3b25fd4e826dcf5789212.zip
Merge pull request #1919 from ethersphere/getnatspec
rpc api: eth_getNatSpec
Diffstat (limited to 'cmd/geth/js_test.go')
-rw-r--r--cmd/geth/js_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/geth/js_test.go b/cmd/geth/js_test.go
index 09cc88519..477079706 100644
--- a/cmd/geth/js_test.go
+++ b/cmd/geth/js_test.go
@@ -31,7 +31,7 @@ import (
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/compiler"
- "github.com/ethereum/go-ethereum/common/docserver"
+ "github.com/ethereum/go-ethereum/common/httpclient"
"github.com/ethereum/go-ethereum/common/natspec"
"github.com/ethereum/go-ethereum/common/registrar"
"github.com/ethereum/go-ethereum/core"
@@ -62,7 +62,7 @@ var (
type testjethre struct {
*jsre
lastConfirm string
- ds *docserver.DocServer
+ client *httpclient.HTTPClient
}
func (self *testjethre) UnlockAccount(acc []byte) bool {
@@ -75,7 +75,7 @@ func (self *testjethre) UnlockAccount(acc []byte) bool {
func (self *testjethre) ConfirmTransaction(tx string) bool {
if self.ethereum.NatSpec {
- self.lastConfirm = natspec.GetNotice(self.xeth, tx, self.ds)
+ self.lastConfirm = natspec.GetNotice(self.xeth, tx, self.client)
}
return true
}
@@ -101,6 +101,7 @@ func testREPL(t *testing.T, config func(*eth.Config)) (string, *testjethre, *eth
AccountManager: am,
MaxPeers: 0,
Name: "test",
+ DocRoot: "/",
SolcPath: testSolcPath,
PowTest: true,
NewDB: func(path string) (ethdb.Database, error) { return db, nil },
@@ -130,8 +131,7 @@ func testREPL(t *testing.T, config func(*eth.Config)) (string, *testjethre, *eth
assetPath := filepath.Join(os.Getenv("GOPATH"), "src", "github.com", "ethereum", "go-ethereum", "cmd", "mist", "assets", "ext")
client := comms.NewInProcClient(codec.JSON)
- ds := docserver.New("/")
- tf := &testjethre{ds: ds}
+ tf := &testjethre{client: ethereum.HTTPClient()}
repl := newJSRE(ethereum, assetPath, "", client, false, tf)
tf.jsre = repl
return tmp, tf, ethereum