Skip to content

Commit

Permalink
Merge pull request #72 from kleros/fix/query-header
Browse files Browse the repository at this point in the history
fix: add-headers-to-subgraph-fetch-query
  • Loading branch information
jaybuidl authored Jun 5, 2024
2 parents 5086efd + b28bc58 commit 1975e22
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/standards/Arbitrable.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@ class Arbitrable extends StandardContract {
}
}`,
};
const dispute = (await (await fetch(subgraph, { method: "POST", body: JSON.stringify(query) })).json())?.data
?.disputes;
const dispute = (await (await fetch(subgraph, { method: "POST",
body: JSON.stringify(query),
headers: {
'Content-Type': 'application/json',
}, })).json())?.data?.disputes;
return (
await Promise.allSettled(
dispute[0]?.evidenceGroup?.evidence.map(async (evidence) => {
Expand Down

0 comments on commit 1975e22

Please sign in to comment.