Skip to content

Commit

Permalink
fix: dynamic script patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybuidl committed Dec 14, 2023
1 parent 6a7f939 commit 72d3b2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bootstrap/dataloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ const funcs = {
metaEvidenceJSON.rulingOptions.type = "single-select";

if (metaEvidenceJSON.dynamicScriptURI) {
const scriptURI = getHttpUri(metaEvidenceJSON.dynamicScriptURI);
const scriptURI =
chainID === 1 && disputeId === "1621"
? getHttpUri("/ipfs/Qmf1k727vP7qZv21MDB8vwL6tfVEKPCUQAiw8CTfHStkjf")
: getHttpUri(metaEvidenceJSON.dynamicScriptURI);

console.info("Fetching dynamic script file at", scriptURI);

const fileResponse = await axios.get(scriptURI);

Expand Down

0 comments on commit 72d3b2e

Please sign in to comment.