hello: Move from f2

This commit is contained in:
Łukasz Magiera
2019-07-03 19:39:07 +02:00
parent 46a5019c8d
commit fdde4db217
13 changed files with 208 additions and 7 deletions
+2 -2
View File
@@ -2,12 +2,12 @@ package client
import (
"github.com/filecoin-project/go-lotus/api"
"github.com/filecoin-project/go-lotus/rpclib"
"github.com/filecoin-project/go-lotus/jsonrpc"
)
// NewRPC creates a new http jsonrpc client.
func NewRPC(addr string) api.API {
var res api.Struct
rpclib.NewClient(addr, "Filecoin", &res.Internal)
jsonrpc.NewClient(addr, "Filecoin", &res.Internal)
return &res
}