rubic-sdk 4.48.2 → 4.48.3

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.
@@ -194422,11 +194422,11 @@ class CrossChainStatusManager {
194422
194422
  }
194423
194423
  async getXyDstSwapStatus(data) {
194424
194424
  try {
194425
- const { isSuccess, status, txHash } = await this.httpClient.get(`${xy_api_params_1.XY_API_ENDPOINT}/crossChainStatus?srcChainId=${blockchain_id_1.blockchainId[data.fromBlockchain]}&srcTxHash=${data.srcTxHash}`);
194426
- if (isSuccess && status === 'Done') {
194427
- return { status: tx_status_1.TX_STATUS.SUCCESS, hash: txHash };
194425
+ 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}`);
194426
+ if (success && status === 'Done') {
194427
+ return { status: tx_status_1.TX_STATUS.SUCCESS, hash: tx };
194428
194428
  }
194429
- if (!isSuccess) {
194429
+ if (!success) {
194430
194430
  return { status: tx_status_1.TX_STATUS.FAIL, hash: null };
194431
194431
  }
194432
194432
  return { status: tx_status_1.TX_STATUS.PENDING, hash: null };