From 722fabad60a577c05399c58a2df38154d836edfd Mon Sep 17 00:00:00 2001 From: nicholaspai Date: Sun, 19 May 2024 22:49:59 +0200 Subject: [PATCH] Update l2ToL1.ts --- src/finalizer/utils/cctp/l2ToL1.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/finalizer/utils/cctp/l2ToL1.ts b/src/finalizer/utils/cctp/l2ToL1.ts index 91c6d299f..b01550deb 100644 --- a/src/finalizer/utils/cctp/l2ToL1.ts +++ b/src/finalizer/utils/cctp/l2ToL1.ts @@ -8,6 +8,7 @@ import { Signer, TOKEN_SYMBOLS_MAP, assert, + compareAddressesSimple, getBlockForTimestamp, getCurrentTime, getNetworkName, @@ -75,7 +76,7 @@ async function resolveRelatedTxnReceipts( .filter( (bridgeEvent) => bridgeEvent.blockNumber >= latestBlockToFinalize && - bridgeEvent.l2TokenAddress === TOKEN_SYMBOLS_MAP._USDC.addresses[sourceChainId] + compareAddressesSimple(bridgeEvent.l2TokenAddress, TOKEN_SYMBOLS_MAP._USDC.addresses[sourceChainId]) ) .forEach((bridgeEvent) => uniqueTxnHashes.add(bridgeEvent.transactionHash));