Skip to content

Commit

Permalink
Added assumes to ensure gov settings being changed to new values
Browse files Browse the repository at this point in the history
  • Loading branch information
jferas committed Nov 28, 2023
1 parent 1832b53 commit 3a921d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/RadworksGovernor.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ abstract contract Propose is ProposalTest {
uint256 _newVotingPeriod,
uint256 _newProposalThreshold
) public {
vm.assume(_newDelay != governorBravo.votingDelay());
vm.assume(_newVotingPeriod != governorBravo.votingPeriod());
vm.assume(_newProposalThreshold != governorBravo.proposalThreshold());

// The upper bounds are arbitrary here.
_newDelay = bound(_newDelay, 0, 50_000); // about a week at 1 block per 12s
_newVotingPeriod = bound(_newVotingPeriod, 1, 200_000); // about a month
Expand Down

0 comments on commit 3a921d8

Please sign in to comment.