From 57919f0fd8f5e06c3de92a873ca2fcf9d741379b Mon Sep 17 00:00:00 2001 From: Shunji Zhan Date: Thu, 28 Dec 2023 12:07:46 +0800 Subject: [PATCH] udpate fn name --- packages/wormhole-portal/src/utils/get-tx-receipt-with-retry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wormhole-portal/src/utils/get-tx-receipt-with-retry.ts b/packages/wormhole-portal/src/utils/get-tx-receipt-with-retry.ts index 78649180..e0852664 100644 --- a/packages/wormhole-portal/src/utils/get-tx-receipt-with-retry.ts +++ b/packages/wormhole-portal/src/utils/get-tx-receipt-with-retry.ts @@ -13,7 +13,7 @@ export async function getTxReceiptWithRetry( attempts++; await new Promise((resolve) => setTimeout(resolve, retryTimeout)); try { - result = await provider.getReceiptByHash(hash); + result = await provider.getReceipt(hash); } catch (e) { if (retryAttempts !== undefined && attempts > retryAttempts) { throw e;