Skip to content

Commit

Permalink
remove duplicate test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
garyghayrat committed Nov 4, 2024
1 parent f248449 commit f78cc0f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions contracts/test/helpers/CompoundGovernorTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,9 @@ contract CompoundGovernorTest is Test, CompoundGovernorConstants {
);
}

function _passProposal(uint256 _proposalId) public {
for (uint256 _index = 0; _index < _majorDelegates.length; _index++) {
vm.prank(_majorDelegates[_index]);
governor.castVote(_proposalId, uint8(GovernorCountingSimpleUpgradeable.VoteType.For));
}
}

function _passAndQueueProposal(Proposal memory _proposal, uint256 _proposalId) public {
uint256 _timeLockDelay = timelock.delay();
_passProposal(_proposalId);
vm.roll(vm.getBlockNumber() + INITIAL_VOTING_PERIOD + 1);
governor.queue(
_proposal.targets, _proposal.values, _proposal.calldatas, keccak256(bytes(_proposal.description))
);
Expand Down

0 comments on commit f78cc0f

Please sign in to comment.