Skip to content

Commit

Permalink
Merge pull request #395 from kleros/fix/dynamic-script-patch-1621
Browse files Browse the repository at this point in the history
fix: dynamic script patch
  • Loading branch information
alcercu authored Dec 14, 2023
2 parents 6a7f939 + 72d3b2e commit d99874e
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 d99874e

Please sign in to comment.