From 1c19cadd1a6f94df29f8746a39eb49a4ce8b91fd Mon Sep 17 00:00:00 2001 From: jaybuidl Date: Wed, 17 Sep 2025 14:09:42 +0100 Subject: [PATCH 1/2] chore: dummy commit bis --- subgraph/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subgraph/README.md b/subgraph/README.md index e061dfec3..c1f8fdb09 100644 --- a/subgraph/README.md +++ b/subgraph/README.md @@ -65,3 +65,5 @@ Pick the appropriate network. There should be a corresponding yarn script in the Then reach out to a maintainer and request his approval. image + +x From f4ccaac3724fcd1c1252603698e16e77afa9f672 Mon Sep 17 00:00:00 2001 From: Harman-singh-waraich Date: Sat, 1 Nov 2025 00:36:59 +0530 Subject: [PATCH 2/2] fix(web): invalid-dispute-vote-reveal --- .../Cases/CaseDetails/Voting/Classic/Reveal.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx b/web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx index 8d4818b21..289d2ade8 100644 --- a/web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx +++ b/web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx @@ -7,6 +7,7 @@ import { useLocalStorage } from "react-use"; import { encodePacked, keccak256, PrivateKeyAccount } from "viem"; import { useWalletClient, usePublicClient, useConfig } from "wagmi"; +import { Answer } from "@kleros/kleros-sdk"; import { Button } from "@kleros/ui-components-library"; import { simulateDisputeKitClassicCastVote } from "hooks/contracts/generated"; @@ -17,11 +18,10 @@ import { wrapWithToast, catchShortMessage } from "utils/wrapWithToast"; import { useDisputeDetailsQuery } from "queries/useDisputeDetailsQuery"; +import { EnsureChain } from "components/EnsureChain"; import InfoCard from "components/InfoCard"; import JustificationArea from "./JustificationArea"; -import { Answer } from "@kleros/kleros-sdk"; -import { EnsureChain } from "components/EnsureChain"; const Container = styled.div` width: 100%; @@ -145,7 +145,13 @@ const getSaltAndChoice = async ( if (isUndefined(rawSalt)) return; const salt = keccak256(rawSalt); - const { choice } = answers.reduce<{ found: boolean; choice: bigint }>( + // when dispute is invalid, just add RFA to the answers array + const candidates = + answers?.length > 0 + ? answers + : [{ id: "0x0", title: "Refuse To Arbitrate", description: "Refuse To Arbitrate" } as Answer]; + + const { choice } = candidates.reduce<{ found: boolean; choice: bigint }>( (acc, answer) => { if (acc.found) return acc; const innerCommit = keccak256(encodePacked(["uint256", "uint256"], [BigInt(answer.id), BigInt(salt)]));