hello: Move from f2
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user