From e5b84f99f5c1c0e17af850952405f2700addd9ce Mon Sep 17 00:00:00 2001 From: Ashitaka <96790496+ashitakah@users.noreply.github.com> Date: Wed, 10 Jul 2024 18:01:05 -0300 Subject: [PATCH] fix: same block revealing (#45) Co-authored-by: shaito <106555513+0xShaito@users.noreply.github.com> --- .../modules/resolution/PrivateERC20ResolutionModule.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solidity/contracts/modules/resolution/PrivateERC20ResolutionModule.sol b/solidity/contracts/modules/resolution/PrivateERC20ResolutionModule.sol index 4019f307..9fcc26b0 100644 --- a/solidity/contracts/modules/resolution/PrivateERC20ResolutionModule.sol +++ b/solidity/contracts/modules/resolution/PrivateERC20ResolutionModule.sol @@ -126,7 +126,7 @@ contract PrivateERC20ResolutionModule is Module, IPrivateERC20ResolutionModule { if (block.timestamp < _escalation.startTime + _params.committingTimeWindow) { revert PrivateERC20ResolutionModule_OnGoingCommittingPhase(); } - if (block.timestamp < _escalation.startTime + _params.committingTimeWindow + _params.revealingTimeWindow) { + if (block.timestamp <= _escalation.startTime + _params.committingTimeWindow + _params.revealingTimeWindow) { revert PrivateERC20ResolutionModule_OnGoingRevealingPhase(); }