From adb2b4de2fe8e2f4f45c4b144ca60fa1c40f4b01 Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Sat, 23 Sep 2023 11:41:01 +0000 Subject: [PATCH] forgot to port over these table ID fixes --- packages/store-sync/src/createStoreSync.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/store-sync/src/createStoreSync.ts b/packages/store-sync/src/createStoreSync.ts index 082fd59f5d..49f6489b7f 100644 --- a/packages/store-sync/src/createStoreSync.ts +++ b/packages/store-sync/src/createStoreSync.ts @@ -122,7 +122,7 @@ export async function createStoreSync // indexer is being silly. map(({ blockNumber, tables }) => ({ blockNumber, - tables: tables.filter((table) => tableIds != null && tableIds.includes(table.tableId)), + tables: tables.filter((table) => tableIds == null || tableIds.includes(table.tableId)), })), concatMap(async ({ blockNumber, tables }) => { debug("hydrating from initial state to block", blockNumber); @@ -204,7 +204,7 @@ export async function createStoreSync mergeMap(({ toBlock, logs }) => from(groupLogsByBlockNumber(logs, toBlock))), map(({ blockNumber, logs }) => ({ blockNumber, - logs: logs.filter((log) => tableIds != null && tableIds.includes(log.args.table)), + logs: logs.filter((log) => tableIds == null || tableIds.includes(log.args.table)), })), share() );