Skip to content

Commit 8032917

Browse files
committed
chore: storage optimisation by reordering Vote.voted
1 parent 8f438dd commit 8032917

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/src/arbitration/dispute-kits/DisputeKitClassicBase.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ abstract contract DisputeKitClassicBase is IDisputeKit, Initializable, UUPSProxi
4747
}
4848

4949
struct Vote {
50+
bool voted; // True if the vote has been cast.
5051
address account; // The address of the juror.
5152
bytes32 commit; // The commit of the juror. For courts with hidden votes.
5253
uint256 choice; // The choice of the juror.
53-
bool voted; // True if the vote has been cast.
5454
uint256[10] __gap; // Reserved slots for future upgrades.
5555
}
5656

@@ -72,6 +72,7 @@ abstract contract DisputeKitClassicBase is IDisputeKit, Initializable, UUPSProxi
7272
uint256 public jumpDisputeKitID; // The ID of the dispute kit in Kleros Core disputeKits array that the dispute should switch to after the court jump, in case the new court doesn't support this dispute kit.
7373

7474
uint256[50] private __gap; // Reserved slots for future upgrades.
75+
7576
// ************************************* //
7677
// * Events * //
7778
// ************************************* //

0 commit comments

Comments
 (0)