Skip to content

Commit ad1ff0d

Browse files
committed
test: extra tests covering KlerosCore sanity checks
1 parent 8704a3c commit ad1ff0d

File tree

2 files changed

+748
-0
lines changed

2 files changed

+748
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// SPDX-License-Identifier: MIT
2+
3+
pragma solidity ^0.8.24;
4+
5+
import "../arbitration/dispute-kits/DisputeKitClassic.sol";
6+
7+
/// @title DisputeKitClassicMockUncheckedNextRoundSettings
8+
/// DisputeKitClassic with unchecked next round settings to test `KlerosCore._getCompatibleNextRoundSettings()` fallback logic.
9+
contract DisputeKitClassicMockUncheckedNextRoundSettings is DisputeKitClassic {
10+
function getNextRoundSettings(
11+
uint256 /* _disputeID */,
12+
uint96 _currentCourtID,
13+
uint96 /* _parentCourtID */,
14+
uint256 /* _currentCourtJurorsForJump */,
15+
uint256 /* _currentDisputeKitID */,
16+
uint256 /* _currentRoundNbVotes */
17+
) public view override returns (uint96 newCourtID, uint256 newDisputeKitID, uint256 newRoundNbVotes) {
18+
NextRoundSettings storage nextRoundSettings = courtIDToNextRoundSettings[_currentCourtID];
19+
newRoundNbVotes = nextRoundSettings.nbVotes;
20+
newCourtID = nextRoundSettings.jumpCourtID;
21+
newDisputeKitID = nextRoundSettings.jumpDisputeKitID;
22+
}
23+
}

0 commit comments

Comments
 (0)