Skip to content

Commit 1c3bb8b

Browse files
committed
fix: fix parameters for order status
1 parent 490fad2 commit 1c3bb8b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/bridge-status-controller/src/bridge-status-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ export class BridgeStatusController extends StaticIntervalPollingController<Brid
707707
}
708708

709709
try {
710-
const orderUid = bridgeTxMetaId.replace(/^intent:/u, '');
710+
const orderId = bridgeTxMetaId.replace(/^intent:/u, '');
711711
const { srcChainId } = historyItem.quote;
712712

713713
// Extract provider name from order metadata or default to empty
@@ -718,7 +718,7 @@ export class BridgeStatusController extends StaticIntervalPollingController<Brid
718718
this.#fetchFn,
719719
);
720720
const intentOrder = await intentApi.getOrderStatus(
721-
orderUid,
721+
orderId,
722722
providerName,
723723
srcChainId.toString(),
724724
);

packages/bridge-status-controller/src/intent-api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ export class IntentApiImpl implements IntentApi {
3535
}
3636

3737
async getOrderStatus(
38-
orderUid: string,
39-
providerName: string,
40-
srcChainId: string,
38+
orderId: string,
39+
aggregatorId: string,
40+
chainId: string,
4141
): Promise<any> {
42-
const endpoint = `${this.baseUrl}/getOrderStatus?orderUid=${orderUid}&providerName=${encodeURIComponent(providerName)}&srcChainId=${srcChainId}`;
42+
const endpoint = `${this.baseUrl}/getOrderStatus?orderId=${orderId}&aggregatorId=${encodeURIComponent(aggregatorId)}&chainId=${chainId}`;
4343
const response = (await this.fetchFn(endpoint, {
4444
method: 'GET',
4545
})) as Response;

0 commit comments

Comments
 (0)