Fix jsonrpc client after splitting apis

This commit is contained in:
Łukasz Magiera
2019-07-24 02:40:19 +02:00
parent eda03095b0
commit f0e807dabb
7 changed files with 197 additions and 172 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ func GetAPI(ctx *cli.Context) (api.FullNode, error) {
headers.Add("Authorization", "Bearer "+string(token))
}
return client.NewRPC("ws://"+addr+"/rpc/v0", headers)
return client.NewFullNodeRPC("ws://"+addr+"/rpc/v0", headers)
}
// ReqContext returns context for cli execution. Calling it for the first time