Skip to content

Commit b28bc58

Browse files
fix: add-headers-to-subgraph-fetch-query
1 parent 5086efd commit b28bc58

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/standards/Arbitrable.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,11 @@ class Arbitrable extends StandardContract {
176176
}
177177
}`,
178178
};
179-
const dispute = (await (await fetch(subgraph, { method: "POST", body: JSON.stringify(query) })).json())?.data
180-
?.disputes;
179+
const dispute = (await (await fetch(subgraph, { method: "POST",
180+
body: JSON.stringify(query),
181+
headers: {
182+
'Content-Type': 'application/json',
183+
}, })).json())?.data?.disputes;
181184
return (
182185
await Promise.allSettled(
183186
dispute[0]?.evidenceGroup?.evidence.map(async (evidence) => {

0 commit comments

Comments
 (0)