Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RedRaton committed Nov 20, 2023
1 parent 1d69010 commit 071e643
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
public class TezosBalanceRequest implements GetRequest<TezosBalanceJson> {
private final String address;

/* API key created with a personal account on tzpro.com. */
private static final String MY_API_KEY = "FW05FXESQ3P1TLJOSIJM6T58CWYADX5";

public TezosBalanceRequest(String pTezosAddress) {
address = pTezosAddress;
}

@Override
public String baseUrl() {
return "https://api.tzstats.com";
return "https://api.tzpro.io";
}

@Override
Expand All @@ -34,7 +37,7 @@ public Class<TezosBalanceJson> jsonResponseClass() {

@Override
public String parameters() {
return "";
return "api_key=" + MY_API_KEY;
}

}
2 changes: 1 addition & 1 deletion src/test/resources/privateConfig.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BTC_ADDRESS = 35hK24tcLEWcgNA4JxpvbkNkoAcDGqQPsP
ALGORAND_ADDRESS = 6JF7P3NV4SO52ZWQJH6O7OWFV5AP6ES4LS6ORKUN7WIPRFLWTZIRJOW2LU

#Ethereum public address for tests
ETH_ADDRESS = 0x2D892CaEf2DfBd28459CCff560dEBceCCdE57694
ETH_ADDRESS = 0xbe0eb53f46cd790cd13851d5eff43d12404d33e8

#Avalanche public address for tests
AVALANCHE_C_ADDRESS = 0x040993fbF458b95871Cd2D73Ee2E09F4AF6d56bB
Expand Down

0 comments on commit 071e643

Please sign in to comment.