From 1533f1aa8ea0b0a30a61ddba91314056347e6249 Mon Sep 17 00:00:00 2001 From: Alexandre ABRIOUX Date: Fri, 15 Mar 2024 17:01:47 +0100 Subject: [PATCH] fix(payment-detection): default block filter on decentralized network --- packages/payment-detection/src/thegraph/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/payment-detection/src/thegraph/client.ts b/packages/payment-detection/src/thegraph/client.ts index 097600af1d..944ce13305 100644 --- a/packages/payment-detection/src/thegraph/client.ts +++ b/packages/payment-detection/src/thegraph/client.ts @@ -56,8 +56,8 @@ const extractClientOptions = ( if (minIndexedBlock) { queryOptions.blockFilter = { number_gte: minIndexedBlock }; } else if (url.match(/^https:\/\/gateway-\w+\.network\.thegraph\.com\//)) { - // the decentralized network expects an empty object, and doesn't support "undefined" - queryOptions.blockFilter = {}; + // the decentralized network doesn't support "undefined" + queryOptions.blockFilter = { number_gte: 0 }; } // build client options