diff --git a/packages/payment-detection/src/thegraph/client.ts b/packages/payment-detection/src/thegraph/client.ts index b080dddf7..85bb0502d 100644 --- a/packages/payment-detection/src/thegraph/client.ts +++ b/packages/payment-detection/src/thegraph/client.ts @@ -52,7 +52,7 @@ const extractClientOptions = ( const queryOptions: TheGraphQueryOptions = {}; if (minIndexedBlock) { queryOptions.blockFilter = { number_gte: minIndexedBlock }; - } else if (url.match(/https:\/\/gateway-\w.network.thegraph.com/)) { + } else if (url.match(/^https:\/\/gateway-\w+\.network\.thegraph\.com\//)) { // the decentralized network expects an empty object, and doesn't support "undefined" queryOptions.blockFilter = {}; }