Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
smatthewenglish committed May 14, 2019
1 parent d1a760f commit 62b45c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ public void verify(final Node node) {

assertThat(InetAddresses.isUriInetAddress(result.get("ws").get("host"))).isTrue();
final int wsPort = Integer.valueOf(result.get("ws").get("port"));
// TODO: explicitly set port
assertThat(NetworkUtility.isValidPort(wsPort) || wsPort == 0).isTrue();

assertThat(InetAddresses.isUriInetAddress(result.get("jsonrpc").get("host"))).isTrue();
final int jsonRpcPort = Integer.valueOf(result.get("jsonrpc").get("port"));
// TODO: explicitly set port
assertThat(NetworkUtility.isValidPort(jsonRpcPort) || jsonRpcPort == 0).isTrue();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ public NetServicesJsonRpcRequestFactory(final Web3jService web3jService) {

public Request<?, NetServicesResponse> netServices() {

final Request request =
new Request<>(
"net_services", Collections.EMPTY_LIST, web3jService, NetServicesResponse.class);

return request;
return new Request<>(
"net_services", Collections.EMPTY_LIST, web3jService, NetServicesResponse.class);
}
}

0 comments on commit 62b45c2

Please sign in to comment.