Skip to content

Commit 8704a3c

Browse files
committed
fix: sanity check for nbVotes
1 parent 0b4cb0c commit 8704a3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/src/arbitration/KlerosCore.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,8 @@ contract KlerosCore is IArbitratorV2, Initializable, UUPSProxiable {
12551255
newCourtID == FORKING_COURT ||
12561256
newCourtID >= courts.length ||
12571257
newDisputeKitID == NULL_DISPUTE_KIT ||
1258-
newDisputeKitID >= disputeKits.length
1258+
newDisputeKitID >= disputeKits.length ||
1259+
newRoundNbVotes == 0
12591260
) {
12601261
// Falling back to the current court and dispute kit with default nbVotes.
12611262
newCourtID = _dispute.courtID;

0 commit comments

Comments
 (0)