Skip to content

Commit

Permalink
fix(CCTPFinalizer): Set fromBlock from correct chainId (#1544)
Browse files Browse the repository at this point in the history
Only Base has a block height lower than Ethereum's so we're missing all of the Base CCTP withdrawals
  • Loading branch information
nicholaspai authored May 21, 2024
1 parent d15f9aa commit 9131cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/finalizer/utils/cctp/l2ToL1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function cctpL2toL1Finalizer(
): Promise<FinalizerPromise> {
const lookback = getCurrentTime() - 60 * 60 * 24 * 7;
const redis = await getRedisCache(logger);
const fromBlock = await getBlockForTimestamp(hubPoolClient.chainId, lookback, undefined, redis);
const fromBlock = await getBlockForTimestamp(spokePoolClient.chainId, lookback, undefined, redis);
logger.debug({
at: `Finalizer#CCTPL2ToL1Finalizer:${spokePoolClient.chainId}`,
message: `MessageSent event filter for ${getNetworkName(spokePoolClient.chainId)} to L1`,
Expand Down

0 comments on commit 9131cef

Please sign in to comment.