From fc60e3ff971db62e17487a1e31287b899e2a4891 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Tue, 6 Feb 2024 10:55:06 +0100 Subject: [PATCH] Reduce diff --- src/utils/FillUtils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/FillUtils.ts b/src/utils/FillUtils.ts index 51e71fcda..b9e07b3c6 100644 --- a/src/utils/FillUtils.ts +++ b/src/utils/FillUtils.ts @@ -142,6 +142,8 @@ export async function getFillDataForSlowFillFromPreviousRootBundle( lastMatchingFillInSameBundle: FillWithBlock; rootBundleEndBlockContainingFirstFill: number; }> { + assert(sdkUtils.isV2Fill(fill)); + // Can use spokeClient.queryFillsForDeposit(_fill, spokePoolClient.eventSearchConfig.fromBlock) // if allValidFills doesn't contain the deposit's first fill to efficiently find the first fill for a deposit. // Note that allValidFills should only include fills later than than eventSearchConfig.fromBlock.