Skip to content

Commit

Permalink
fix: stack too deep
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent committed Nov 12, 2024
1 parent 4507e3e commit a57e89d
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,14 @@ contract PrivateERC20ResolutionModule is ModuleAccessController, IPrivateERC20Re

RequestParameters memory _params = decodeRequestData(_request.resolutionModuleData);

(uint256 _revealStartTime, uint256 _revealEndTime) = (
_escalation.startTime + _params.committingTimeWindow,
_escalation.startTime + _params.committingTimeWindow + _params.revealingTimeWindow
);
if (block.timestamp < _revealStartTime) revert PrivateERC20ResolutionModule_OnGoingCommittingPhase();
if (block.timestamp >= _revealEndTime) revert PrivateERC20ResolutionModule_RevealingPhaseOver();
{
(uint256 _revealStartTime, uint256 _revealEndTime) = (
_escalation.startTime + _params.committingTimeWindow,
_escalation.startTime + _params.committingTimeWindow + _params.revealingTimeWindow
);
if (block.timestamp < _revealStartTime) revert PrivateERC20ResolutionModule_OnGoingCommittingPhase();
if (block.timestamp >= _revealEndTime) revert PrivateERC20ResolutionModule_RevealingPhaseOver();
}

address _voter = _accessControl.user;
VoterData storage _voterData = _votersData[_disputeId][_voter];
Expand Down

0 comments on commit a57e89d

Please sign in to comment.