Skip to content

Commit fcfdeda

Browse files
Integrate with cloud (#1200)
* update default url for services * fix npe * spotlesS * revert gradle properties
1 parent d17f6de commit fcfdeda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: core/src/main/java/org/web3j/account/LocalWeb3jAccount.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ public class LocalWeb3jAccount {
2828
private static final Path EPIRUS_CONFIG_PATh =
2929
Paths.get(System.getProperty("user.home"), ".epirus", ".config");
3030

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

3335
public static HttpService getOnlineServicesHttpService(final Network network) throws Exception {
3436
if (configExists()) {

0 commit comments

Comments
 (0)