Skip to content

Commit c302740

Browse files
committed
fix: minor fix, commented that changeDisputeKitParent() needs fixing
1 parent 5ea9b4b commit c302740

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contracts/src/arbitration/KlerosCore.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ contract KlerosCore is IArbitrator {
272272
courts[FORKING_COURT].supportedDisputeKits[_disputeKitID] = true;
273273
}
274274
disputeKitNodes[_disputeKitID].parent = _newParent;
275+
276+
// FIXME: update the children and depth
275277
}
276278

277279
/** @dev Creates a subcourt under a specified parent court.
@@ -572,7 +574,7 @@ contract KlerosCore is IArbitrator {
572574
for (uint256 i = 0; i < SEARCH_ITERATIONS; i++) {
573575
if (courts[newSubcourtID].supportedDisputeKits[newDisputeKitID]) {
574576
break;
575-
} else if (disputeKitNodes[newDisputeKitID].parent != 0) {
577+
} else if (disputeKitNodes[newDisputeKitID].parent != NULL_DISPUTE_KIT) {
576578
newDisputeKitID = disputeKitNodes[newDisputeKitID].parent;
577579
} else {
578580
// DK's parent has 0 index, that means we reached the root DK (0 depth level).

0 commit comments

Comments
 (0)