Skip to content

Commit 10f9d59

Browse files
committed
fix: removed work-in-progress for changeDisputeKitParent() to another branch
1 parent 1ce5286 commit 10f9d59

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

contracts/src/arbitration/KlerosCore.sol

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -257,25 +257,6 @@ contract KlerosCore is IArbitrator {
257257
disputeKitNodes[_parent].children.push(disputeKitID);
258258
}
259259

260-
/** @dev Changes the parent of an existing dispute kit.
261-
* @param _disputeKitID The ID of dispute kit.
262-
* @param _newParent The ID of the new parent dispute kit. It is left empty when root DK is created.
263-
* Note that the root DK must be supported by the forking court.
264-
*/
265-
function changeDisputeKitParent(uint256 _disputeKitID, uint256 _newParent) external onlyByGovernor {
266-
require(_disputeKitID < disputeKitNodes.length, "DisputeKitID doesn't exist");
267-
require(_newParent < disputeKitNodes.length, "NewParent doesn't exist");
268-
require(_newParent != _disputeKitID, "Invalid Parent");
269-
270-
// Create new tree, which root should be supported by Forking court.
271-
if (_newParent == NULL_DISPUTE_KIT) {
272-
courts[FORKING_COURT].supportedDisputeKits[_disputeKitID] = true;
273-
}
274-
disputeKitNodes[_disputeKitID].parent = _newParent;
275-
276-
// FIXME: update the children and depth
277-
}
278-
279260
/** @dev Creates a subcourt under a specified parent court.
280261
* @param _parent The `parent` property value of the subcourt.
281262
* @param _hiddenVotes The `hiddenVotes` property value of the subcourt.

0 commit comments

Comments
 (0)