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-24 22:07:44 +0800
commitee73f09727004e94a04a396b99151ab79fd187f4 (patch)
treecfea97e107a61873ae27b728b279ad7a4ebc5559 /rpc
parentdc58568a25e54ea601aefb8e97f427cae0814612 (diff)
downloaddexon-ee73f09727004e94a04a396b99151ab79fd187f4.tar.gz
dexon-ee73f09727004e94a04a396b99151ab79fd187f4.tar.zst
dexon-ee73f09727004e94a04a396b99151ab79fd187f4.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)