Skip to content

Commit 37bd43f

Browse files
committed
fix: no passing to voting period if commits are all cast
1 parent 3d211cc commit 37bd43f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

contracts/src/arbitration/KlerosCoreBase.sol

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -566,10 +566,8 @@ abstract contract KlerosCoreBase is IArbitratorV2, Initializable, UUPSProxiable
566566
if (round.drawnJurors.length != round.nbVotes) revert DisputeStillDrawing();
567567
dispute.period = court.hiddenVotes ? Period.commit : Period.vote;
568568
} else if (dispute.period == Period.commit) {
569-
if (
570-
block.timestamp - dispute.lastPeriodChange < court.timesPerPeriod[uint256(dispute.period)] &&
571-
!disputeKits[round.disputeKitID].areCommitsAllCast(_disputeID)
572-
) {
569+
// Note that we do not want to pass to Voting period if all the commits are cast because it breaks the Shutter auto-reveal currently.
570+
if (block.timestamp - dispute.lastPeriodChange < court.timesPerPeriod[uint256(dispute.period)]) {
573571
revert CommitPeriodNotPassed();
574572
}
575573
dispute.period = Period.vote;

0 commit comments

Comments
 (0)