Skip to content

Commit 6437726

Browse files
committed
fix: typos
1 parent 917b82e commit 6437726

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

contracts/test/foundry/KlerosCore.t.sol

+11-11
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ contract KlerosCoreTest is Test {
308308
10000,
309309
0.03 ether,
310310
511,
311-
[uint256(60), uint256(120), uint256(180), uint256(240)], // Expclitly convert otherwise it throws
311+
[uint256(60), uint256(120), uint256(180), uint256(240)], // Explicitly convert otherwise it throws
312312
supportedDK
313313
);
314314
vm.expectEmit(true, true, true, true);
@@ -570,7 +570,7 @@ contract KlerosCoreTest is Test {
570570
20000,
571571
0.04 ether,
572572
50,
573-
[uint256(10), uint256(20), uint256(30), uint256(40)], // Expclitly convert otherwise it throws
573+
[uint256(10), uint256(20), uint256(30), uint256(40)], // Explicitly convert otherwise it throws
574574
supportedDK
575575
);
576576
core.createCourt(
@@ -620,7 +620,7 @@ contract KlerosCoreTest is Test {
620620
}
621621

622622
function test_changeCourtParameters() public {
623-
// Create a 2nd court to check the minstake requirements
623+
// Create a 2nd court to check the minStake requirements
624624
vm.prank(governor);
625625
uint96 newCourtID = 2;
626626
uint256[] memory supportedDK = new uint256[](1);
@@ -682,7 +682,7 @@ contract KlerosCoreTest is Test {
682682
20000,
683683
0.04 ether,
684684
50,
685-
[uint256(10), uint256(20), uint256(30), uint256(40)] // Expclitly convert otherwise it throws
685+
[uint256(10), uint256(20), uint256(30), uint256(40)] // Explicitly convert otherwise it throws
686686
);
687687
core.changeCourtParameters(
688688
GENERAL_COURT,
@@ -804,7 +804,7 @@ contract KlerosCoreTest is Test {
804804
assertEq(minJurors, DEFAULT_NB_OF_JURORS, "Wrong minJurors");
805805
assertEq(disputeKitID, DISPUTE_KIT_CLASSIC, "Wrong disputeKitID");
806806

807-
// Botched extradata. Values should fall into standard
807+
// Botched extraData. Values should fall into standard
808808
extraData = "0xfa";
809809

810810
(courtID, minJurors, disputeKitID) = core.extraDataToCourtIDMinJurorsDisputeKit(extraData);
@@ -882,7 +882,7 @@ contract KlerosCoreTest is Test {
882882
vm.prank(governor);
883883
core.setStake(GENERAL_COURT, 1000);
884884

885-
// Increase stake one more time to verify the correct behaviour
885+
// Increase stake one more time to verify the correct behavior
886886
vm.prank(staker1);
887887
vm.expectEmit(true, true, true, true);
888888
emit SortitionModuleBase.StakeSet(staker1, GENERAL_COURT, 2000);
@@ -1104,7 +1104,7 @@ contract KlerosCoreTest is Test {
11041104
assertEq(pinakion.balanceOf(staker1), 999999999999997000, "Wrong token balance of staker1");
11051105

11061106
// Stake again to see that locked tokens will count when increasing the stake. We check that the court won't take the full stake
1107-
// but only the remaning part.
1107+
// but only the remaining part.
11081108
vm.prank(staker1);
11091109
core.setStake(GENERAL_COURT, 5000);
11101110

@@ -1842,7 +1842,7 @@ contract KlerosCoreTest is Test {
18421842
(uint256 ruling, bool tied, bool overridden) = disputeKit.currentRuling(disputeID);
18431843
assertEq(ruling, 1, "Wrong ruling");
18441844
assertEq(tied, false, "Not tied");
1845-
assertEq(overridden, false, "Not overriden");
1845+
assertEq(overridden, false, "Not overridden");
18461846
}
18471847

18481848
function test_appeal_fundOneSide() public {
@@ -2426,7 +2426,7 @@ contract KlerosCoreTest is Test {
24262426
assertEq(totalStaked, 0, "Should be unstaked");
24272427
assertEq(totalLocked, 3000, "Wrong amount locked");
24282428
assertEq(stakedInCourt, 0, "Should be unstaked");
2429-
assertEq(nbCourts, 0, "Shoulbe 0 courts");
2429+
assertEq(nbCourts, 0, "Should be 0 courts");
24302430

24312431
assertEq(pinakion.balanceOf(address(core)), 3000, "Wrong token balance of the core");
24322432
assertEq(pinakion.balanceOf(staker1), 999999999999997000, "Wrong token balance of staker1");
@@ -2639,7 +2639,7 @@ contract KlerosCoreTest is Test {
26392639
(uint256 ruling, bool tied, bool overridden) = disputeKit.currentRuling(disputeID);
26402640
assertEq(ruling, 1, "Wrong ruling");
26412641
assertEq(tied, false, "Not tied");
2642-
assertEq(overridden, true, "Shoud be overriden");
2642+
assertEq(overridden, true, "Should be overridden");
26432643
}
26442644

26452645
function test_withdrawFeesAndRewards() public {
@@ -2668,7 +2668,7 @@ contract KlerosCoreTest is Test {
26682668
core.passPeriod(disputeID); // Appeal
26692669

26702670
vm.prank(crowdfunder1);
2671-
disputeKit.fundAppeal{value: 0.63 ether}(disputeID, 1); // Fund the losing choice. The ruling will be overriden here
2671+
disputeKit.fundAppeal{value: 0.63 ether}(disputeID, 1); // Fund the losing choice. The ruling will be overridden here
26722672
vm.prank(crowdfunder2);
26732673
disputeKit.fundAppeal{value: 0.41 ether}(disputeID, 2); // Underpay a bit to not create an appeal and withdraw the funded sum fully
26742674

cspell.json

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"commitlint",
2222
"consts",
2323
"COOLDOWN",
24+
"crowdfunder",
2425
"datetime",
2526
"devnet",
2627
"Devnet",
@@ -47,6 +48,8 @@
4748
"uncommify",
4849
"Unslashed",
4950
"unstake",
51+
"unstaked",
52+
"Unstaking",
5053
"Upgradability",
5154
"UUPS",
5255
"viem",

0 commit comments

Comments
 (0)