Skip to content

Commit

Permalink
fix: old kleros tokens reincluded
Browse files Browse the repository at this point in the history
  • Loading branch information
greenlucid committed Sep 28, 2023
1 parent 970347c commit e77409a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/case-details-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,14 @@ export default function CaseDetailsCard({ ID }) {
const evidenceDisplayInterfaceURL = useMemo(() => {
const normalizeIPFSUri = (uri) => uri.replace(/^\/ipfs\//, "https://ipfs.kleros.io/ipfs/");
if (metaEvidence?.metaEvidenceJSON?.evidenceDisplayInterfaceURI) {
const { evidenceDisplayInterfaceURI, _v = "0" } = metaEvidence.metaEvidenceJSON;
// hack to allow displaying old t2cr disputes, since old endpoint was lost
const evidenceDisplayInterfaceURI =
dispute?.arbitrated === "0xEbcf3bcA271B26ae4B162Ba560e243055Af0E679"
? "/ipfs/QmYs17mAJTaQwYeXNTb6n4idoQXmRcAjREeUdjJShNSeKh/index.html"
: metaEvidence.metaEvidenceJSON.evidenceDisplayInterfaceURI;

const { _v = "0" } = metaEvidence.metaEvidenceJSON;

const arbitratorChainID = metaEvidence.metaEvidenceJSON?.arbitratorChainID ?? chainId;
const arbitrableChainID = metaEvidence.metaEvidenceJSON?.arbitrableChainID ?? arbitratorChainID;

Expand Down
1 change: 1 addition & 0 deletions src/temp/arbitrable-whitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const arbitrableWhitelist = {
"0xd8bf5114796ed28aa52cff61e1b9ef4ec1f69a54",
"0xe0e1bc8c6cd1b81993e2fcfb80832d814886ea38",
"0xe5bcea6f87aaee4a81f64dfdb4d30d400e0e5cf4",
"0xebcf3bca271b26ae4b162ba560e243055af0e679",
"0xf339047c85d0dd2645f2bd802a1e8a5e7af61053",
"0xf65c7560d6ce320cc3a16a07f1f65aab66396b9e",
"0xf72cfd1b34a91a64f9a98537fe63fbab7530adca",
Expand Down

0 comments on commit e77409a

Please sign in to comment.