Skip to content

Commit e6114ba

Browse files
committed
fix: defensive guard added against jumpDisputeKitID not set
1 parent 6636c6d commit e6114ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/src/arbitration/KlerosCoreBase.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,8 @@ abstract contract KlerosCoreBase is IArbitratorV2, Initializable, UUPSProxiable
10811081
if (!courts[newCourtID].supportedDisputeKits[newDisputeKitID]) {
10821082
// The current Dispute Kit is not compatible with the new court, jump to another Dispute Kit.
10831083
newDisputeKitID = disputeKits[_round.disputeKitID].getJumpDisputeKitID();
1084-
if (!courts[newCourtID].supportedDisputeKits[newDisputeKitID]) {
1085-
// The new Dispute Kit is still not compatible, fall back to `DisputeKitClassic` which is always supported.
1084+
if (newDisputeKitID == NULL_DISPUTE_KIT || !courts[newCourtID].supportedDisputeKits[newDisputeKitID]) {
1085+
// The new Dispute Kit is not defined or still not compatible, fall back to `DisputeKitClassic` which is always supported.
10861086
newDisputeKitID = DISPUTE_KIT_CLASSIC;
10871087
}
10881088
disputeKitJump = true;

0 commit comments

Comments
 (0)