mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixed test
This commit is contained in:
parent
65298a9655
commit
cf58cd7754
@ -61,11 +61,12 @@ struct Setup
|
|||||||
|
|
||||||
web3->setIdealPeerCount(5);
|
web3->setIdealPeerCount(5);
|
||||||
web3->ethereum()->setForceMining(true);
|
web3->ethereum()->setForceMining(true);
|
||||||
jsonrpcServer = unique_ptr<WebThreeStubServer>(new WebThreeStubServer(jsonrpc::CorsHttpServer(8080), *web3, {}));
|
auto server = new jsonrpc::CorsHttpServer(8080);
|
||||||
|
jsonrpcServer = unique_ptr<WebThreeStubServer>(new WebThreeStubServer(*server, *web3, {}));
|
||||||
jsonrpcServer->setIdentities({});
|
jsonrpcServer->setIdentities({});
|
||||||
jsonrpcServer->StartListening();
|
jsonrpcServer->StartListening();
|
||||||
|
auto client = new jsonrpc::HttpClient("http://localhost:8080");
|
||||||
jsonrpcClient = unique_ptr<WebThreeStubClient>(new WebThreeStubClient(jsonrpc::HttpClient("http://localhost:8080")));
|
jsonrpcClient = unique_ptr<WebThreeStubClient>(new WebThreeStubClient(*client));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user