|
12 | 12 | public class TransactionService extends AbstractServicesConfig { |
13 | 13 |
|
14 | 14 | 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"; |
16 | 16 | private static final String EMPTY_STRING = ""; |
17 | 17 |
|
18 | 18 | protected TransactionService(EndpointConfig endpointConfig) { |
@@ -74,7 +74,6 @@ public ApiResponse createSignAndSendTransaction(String from, String to, BigDecim |
74 | 74 | public ApiResponse createHDWalletTransaction(String walletName, String password, String from, String to, BigDecimal value, BigDecimal fee, Integer propertyID) { |
75 | 75 | CreateHDWalletTransaction createHDWalletTransaction = CreateHDWalletTransaction.createHDWalletTransaction(walletName, password, from, to, value, fee, propertyID); |
76 | 76 |
|
77 | | - System.out.println(WebServices.formatUrl(url, endpointConfig, "/hdwallet")); |
78 | 77 | return WebServices.httpsRequest(WebServices.formatUrl(url, endpointConfig, "/hdwallet"), HttpsRequestsEnum.POST.name(), |
79 | 78 | endpointConfig, createHDWalletTransaction.toString()); |
80 | 79 | } |
@@ -134,7 +133,7 @@ private ApiResponse createGetTransactionsByPropertyEndpoint(Integer property, In |
134 | 133 | limit = isValid(limit) ? limit : 50; |
135 | 134 | String endpointProperty = property == null ? EMPTY_STRING : String.valueOf(property); |
136 | 135 |
|
137 | | - endpoint = String.format(ABSTRACT_ENDPOINT, endpoint, endpointProperty, index, limit); |
| 136 | + endpoint = String.format(QUERY_PARAMS, endpoint, endpointProperty, index, limit); |
138 | 137 |
|
139 | 138 | return WebServices.httpsRequest(WebServices.formatUrl(url, endpointConfig, endpoint), HttpsRequestsEnum.GET.name(), endpointConfig, null); |
140 | 139 | } |
|
0 commit comments