aboutsummaryrefslogtreecommitdiffstats
path: root/jsonrpc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc.cpp')
-rw-r--r--jsonrpc.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/jsonrpc.cpp b/jsonrpc.cpp
index 033339ec..f261a516 100644
--- a/jsonrpc.cpp
+++ b/jsonrpc.cpp
@@ -29,8 +29,10 @@
#include <libwebthree/WebThree.h>
#include <libweb3jsonrpc/WebThreeStubServer.h>
#include <libweb3jsonrpc/CorsHttpServer.h>
-#include <jsonrpc/connectors/httpserver.h>
-#include <jsonrpc/connectors/httpclient.h>
+#include <jsonrpccpp/server/connectors/httpserver.h>
+#include <jsonrpccpp/client/connectors/httpclient.h>
+//#include <jsonrpc/connectors/httpserver.h>
+//#include <jsonrpc/connectors/httpclient.h>
#include <set>
#include "JsonSpiritHeaders.h"
#include "TestHelper.h"
@@ -54,7 +56,8 @@ dev::WebThreeDirect web3(name, dbPath, true, s, np);
unique_ptr<WebThreeStubServer> jsonrpcServer;
unique_ptr<WebThreeStubClient> jsonrpcClient;
-
+jsonrpc::HttpClient httpClient("http://localhost:8080");
+
struct JsonrpcFixture {
JsonrpcFixture()
{
@@ -66,7 +69,7 @@ struct JsonrpcFixture {
jsonrpcServer->setIdentities({});
jsonrpcServer->StartListening();
- jsonrpcClient = unique_ptr<WebThreeStubClient>(new WebThreeStubClient(new jsonrpc::HttpClient("http://localhost:8080")));
+ jsonrpcClient = unique_ptr<WebThreeStubClient>(new WebThreeStubClient(httpClient));
}
~JsonrpcFixture()
{