Skip to content

Commit

Permalink
fix(payment-detection): subgraph regex
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux committed Nov 29, 2023
1 parent 2719883 commit f134e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/payment-detection/src/thegraph/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
}
Expand Down

0 comments on commit f134e26

Please sign in to comment.