Skip to content

Commit bf59b71

Browse files
fixed gas oracle base url
1 parent 2174387 commit bf59b71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/api/etherscan/core/impl/EtherScanApi.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public EtherScanApi(final String apiKey,
8888

8989
final String ending = EthNetwork.TOBALABA.equals(network) ? "com" : "io";
9090
final String baseUrl = "https://" + network.getDomain() + ".etherscan." + ending + "/api" + "?apikey=" + apiKey;
91+
final String mainnetBaseUrl = "https://" + EthNetwork.MAINNET.getDomain() + ".etherscan." + ending + "/api" + "?apikey=" + apiKey;
9192

9293
this.queueManager = queue;
9394
this.account = new AccountApiProvider(queue, baseUrl, executor);
@@ -97,7 +98,7 @@ public EtherScanApi(final String apiKey,
9798
this.proxy = new ProxyApiProvider(queue, baseUrl, executor);
9899
this.stats = new StatisticApiProvider(queue, baseUrl, executor);
99100
this.txs = new TransactionApiProvider(queue, baseUrl, executor);
100-
this.gastracker = new GasTrackerApiProvider(queue, baseUrl, executor);
101+
this.gastracker = new GasTrackerApiProvider(queue, mainnetBaseUrl, executor);
101102
}
102103

103104
@NotNull

0 commit comments

Comments
 (0)