rubic-sdk 4.48.6 → 4.48.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205270,13 +205270,10 @@ class CrossChainStatusManager {
205270
205270
  }
205271
205271
  async getXyDstSwapStatus(data) {
205272
205272
  try {
205273
- const { success, status, tx } = await this.httpClient.get(`${xy_api_params_1.XY_API_ENDPOINT}/crossChainStatus?srcChainId=${blockchain_id_1.blockchainId[data.fromBlockchain]}&srcTxHash=${data.srcTxHash}`);
205274
- if (success && status === 'Done') {
205273
+ const { success, tx } = await this.httpClient.get(`${xy_api_params_1.XY_API_ENDPOINT}/crossChainStatus?srcChainId=${blockchain_id_1.blockchainId[data.fromBlockchain]}&srcTxHash=${data.srcTxHash}`);
205274
+ if (success && tx) {
205275
205275
  return { status: tx_status_1.TX_STATUS.SUCCESS, hash: tx };
205276
205276
  }
205277
- if (!success) {
205278
- return { status: tx_status_1.TX_STATUS.FAIL, hash: null };
205279
- }
205280
205277
  return { status: tx_status_1.TX_STATUS.PENDING, hash: null };
205281
205278
  }
205282
205279
  catch {