Skip to content

Commit

Permalink
Integrate with cloud (#1200)
Browse files Browse the repository at this point in the history
* update default url for services

* fix npe

* spotlesS

* revert gradle properties
  • Loading branch information
josh-richardson authored Apr 27, 2020
1 parent d17f6de commit fcfdeda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/org/web3j/account/LocalWeb3jAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public class LocalWeb3jAccount {
private static final Path EPIRUS_CONFIG_PATh =
Paths.get(System.getProperty("user.home"), ".epirus", ".config");

private static String NODE_RPC_ENDPOINT = "https://%s-eth.epirus.io/%s";
public static final String DEFAULT_APP_URL =
System.getenv().getOrDefault("EPIRUS_APP_URL", "https://app.epirus.io");
private static final String NODE_RPC_ENDPOINT = DEFAULT_APP_URL + "/api/rpc/%s/%s/";

public static HttpService getOnlineServicesHttpService(final Network network) throws Exception {
if (configExists()) {
Expand Down

0 comments on commit fcfdeda

Please sign in to comment.