Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit 2aa1ea1

Browse files
CRYPTOAPIS-1999 small changes
1 parent b7c9764 commit 2aa1ea1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/io/cryptoapis/layers/omni_layer/services/TransactionService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public class TransactionService extends AbstractServicesConfig {
1313

1414
private static final String PATH = "/{0}/bc/{1}/omni/{2}/txs{3}";
15-
private static final String ABSTRACT_ENDPOINT = "/%s/%s?index=%d&limit=%d";
15+
private static final String QUERY_PARAMS = "/%s/%s?index=%d&limit=%d";
1616
private static final String EMPTY_STRING = "";
1717

1818
protected TransactionService(EndpointConfig endpointConfig) {
@@ -74,7 +74,6 @@ public ApiResponse createSignAndSendTransaction(String from, String to, BigDecim
7474
public ApiResponse createHDWalletTransaction(String walletName, String password, String from, String to, BigDecimal value, BigDecimal fee, Integer propertyID) {
7575
CreateHDWalletTransaction createHDWalletTransaction = CreateHDWalletTransaction.createHDWalletTransaction(walletName, password, from, to, value, fee, propertyID);
7676

77-
System.out.println(WebServices.formatUrl(url, endpointConfig, "/hdwallet"));
7877
return WebServices.httpsRequest(WebServices.formatUrl(url, endpointConfig, "/hdwallet"), HttpsRequestsEnum.POST.name(),
7978
endpointConfig, createHDWalletTransaction.toString());
8079
}
@@ -134,7 +133,7 @@ private ApiResponse createGetTransactionsByPropertyEndpoint(Integer property, In
134133
limit = isValid(limit) ? limit : 50;
135134
String endpointProperty = property == null ? EMPTY_STRING : String.valueOf(property);
136135

137-
endpoint = String.format(ABSTRACT_ENDPOINT, endpoint, endpointProperty, index, limit);
136+
endpoint = String.format(QUERY_PARAMS, endpoint, endpointProperty, index, limit);
138137

139138
return WebServices.httpsRequest(WebServices.formatUrl(url, endpointConfig, endpoint), HttpsRequestsEnum.GET.name(), endpointConfig, null);
140139
}

0 commit comments

Comments
 (0)