From 3b4231ba90dbaff38dde77b89556d092ddc2d761 Mon Sep 17 00:00:00 2001 From: Andy Espagnolo Date: Tue, 11 Jun 2024 19:55:30 -0300 Subject: [PATCH] refactor: update fetch in snapshot subgraph client (#1851) --- src/clients/SnapshotSubgraph.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clients/SnapshotSubgraph.ts b/src/clients/SnapshotSubgraph.ts index 9a4ded3b1..988efab39 100644 --- a/src/clients/SnapshotSubgraph.ts +++ b/src/clients/SnapshotSubgraph.ts @@ -79,7 +79,7 @@ export class SnapshotSubgraph { const delegations: Delegation[] = await inBatches( async (vars, skip, batchSize) => { - const response = await fetch(SNAPSHOT_QUERY_ENDPOINT, { + const response = await fetch(this.queryEndpoint, { method: 'post', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({