Skip to content

Commit

Permalink
Update src/utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Aug 20, 2024
1 parent 6ebe7c4 commit 1cc543d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export async function multicall(

export async function subgraphRequest(url: string, query, options: any = {}) {
const body: Record<string, any> = { query: jsonToGraphQLQuery({ query }) };
if (body) body.variables = options.variables;
if (options.variables) body.variables = options.variables;
const res = await fetch(url, {
method: 'POST',
headers: {
Expand Down

0 comments on commit 1cc543d

Please sign in to comment.