Skip to content

Commit 8833204

Browse files
author
T. Ismael Verdugo
committed
fix: rename get withdrawal fees hash method name
1 parent 56d037a commit 8833204

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/com/cryptomarket/sdk/rest/CryptomarketRestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ public String getEstimateWithdrawalFee(String currency, String amount, @Nullable
14291429
* @return the fees hash
14301430
* @throws CryptomarketSDKException
14311431
*/
1432-
public String getFeesHash() throws CryptomarketSDKException;
1432+
public String getWithdrawalFeesHash() throws CryptomarketSDKException;
14331433

14341434
/**
14351435
* Get an estimate of the deposit fee

src/main/java/com/cryptomarket/sdk/rest/CryptomarketRestClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ public List<Fee> getBulkEstimateWithdrawalFees(List<FeeRequest> feeRequests) thr
937937
}
938938

939939
@Override
940-
public String getFeesHash() throws CryptomarketSDKException {
940+
public String getWithdrawalFeesHash() throws CryptomarketSDKException {
941941
String jsonResponse = httpClient.get("wallet/crypto/fee/withdraw/hash", null);
942942
return adapter.objectFromJsonValue(jsonResponse, "hash", String.class);
943943
}

src/test/java/com/cryptomarket/sdk/TestRestClientWalletManagement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public void testGetEstimateWithdrawFee() throws CryptomarketSDKException {
144144
}
145145
@Test
146146
public void testGetEstimateWithdrawFeesHash() throws CryptomarketSDKException {
147-
String estimate = client.getFeesHash();
147+
String estimate = client.getWithdrawalFeesHash();
148148
if (estimate.equals("")) {
149149
fail();
150150
}

0 commit comments

Comments
 (0)