aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-24 22:07:44 +0800
committerBas van Kervel <bas@ethdev.com>2015-06-30 17:20:31 +0800
commit02c6af66bfd04f5eb2e2d48a85615e93ea9c9ddc (patch)
tree97687e62b9e1357afb8bf8192bb39941891111be /rpc
parentec866b066ace5d80c3c6a69349dbb1fac4503b46 (diff)
downloadgo-tangerine-02c6af66bfd04f5eb2e2d48a85615e93ea9c9ddc.tar
go-tangerine-02c6af66bfd04f5eb2e2d48a85615e93ea9c9ddc.tar.gz
go-tangerine-02c6af66bfd04f5eb2e2d48a85615e93ea9c9ddc.tar.bz2
go-tangerine-02c6af66bfd04f5eb2e2d48a85615e93ea9c9ddc.tar.lz
go-tangerine-02c6af66bfd04f5eb2e2d48a85615e93ea9c9ddc.tar.xz
go-tangerine-02c6af66bfd04f5eb2e2d48a85615e93ea9c9ddc.tar.zst
go-tangerine-02c6af66bfd04f5eb2e2d48a85615e93ea9c9ddc.zip
fixed unittest compilation issue
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/api_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpc/api/api_test.go b/rpc/api/api_test.go
index 7e273ef28..2ac8bcd45 100644
--- a/rpc/api/api_test.go
+++ b/rpc/api/api_test.go
@@ -76,8 +76,9 @@ func TestCompileSolidity(t *testing.T) {
expLanguageVersion := "0"
expSource := source
- xeth := xeth.NewTest(&eth.Ethereum{}, nil)
- api := NewEthApi(xeth, codec.JSON)
+ eth := &eth.Ethereum{}
+ xeth := xeth.NewTest(eth, nil)
+ api := NewEthApi(xeth, eth, codec.JSON)
var rpcRequest shared.Request
json.Unmarshal([]byte(jsonstr), &rpcRequest)