From 14994dbbaaeb7a187ab5a00771eb737b3c1f245e Mon Sep 17 00:00:00 2001 From: kemuru <102478601+kemuru@users.noreply.github.com> Date: Thu, 15 May 2025 17:39:36 +0200 Subject: [PATCH] fix: bug fix in subgraph --- subgraph/core/src/DisputeKitClassic.ts | 2 +- subgraph/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subgraph/core/src/DisputeKitClassic.ts b/subgraph/core/src/DisputeKitClassic.ts index 894ab9827..2b6e8b2c5 100644 --- a/subgraph/core/src/DisputeKitClassic.ts +++ b/subgraph/core/src/DisputeKitClassic.ts @@ -161,7 +161,7 @@ export function handleChoiceFunded(event: ChoiceFunded): void { const localDispute = ClassicDispute.load(`${disputeKitID}-${coreDisputeID}`); if (!localDispute) return; - if (BigInt.fromString(disputeKitID) === newDisputeKitID) { + if (BigInt.fromString(disputeKitID).equals(newDisputeKitID)) { const newRoundIndex = localDispute.currentLocalRoundIndex.plus(ONE); const numberOfChoices = localDispute.numberOfChoices; localDispute.currentLocalRoundIndex = newRoundIndex; diff --git a/subgraph/package.json b/subgraph/package.json index b2599e3e8..511ff0fa9 100644 --- a/subgraph/package.json +++ b/subgraph/package.json @@ -1,6 +1,6 @@ { "name": "@kleros/kleros-v2-subgraph", - "version": "0.16.1", + "version": "0.16.2", "drtVersion": "0.12.0", "license": "MIT", "scripts": {