File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
contracts/src/arbitration Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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).
You can’t perform that action at this time.
0 commit comments