Skip to content

Commit 613b8c3

Browse files
committed
fix: vote index error
1 parent 3a930be commit 613b8c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ abstract contract DisputeKitClassicBase is IDisputeKit, Initializable, UUPSProxi
728728
) internal view virtual {
729729
bytes32 actualVoteHash = hashVote(_choice, _salt, _justification);
730730
for (uint256 i = 0; i < _voteIDs.length; i++) {
731-
if (disputes[_localDisputeID].rounds[_localRoundID].votes[i].commit != actualVoteHash)
731+
if (disputes[_localDisputeID].rounds[_localRoundID].votes[_voteIDs[i]].commit != actualVoteHash)
732732
revert HashDoesNotMatchHiddenVoteCommitment();
733733
}
734734
}

0 commit comments

Comments
 (0)