Skip to content

Commit

Permalink
nit: test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jjranalli committed Jun 21, 2023
1 parent cf71320 commit c488adb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/ApprovalVotingModule.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,12 @@ contract ApprovalVotingModuleTest is Test {
votes[0] = 1;
votes[1] = 2;
bytes memory params = abi.encode(votes);
uint256[] memory altVotes = new uint256[](1);
altVotes[0] = 1;
bytes memory altParams = abi.encode(altVotes);

module._countVote(proposalId, voter, uint8(VoteType.For), weight, params);
module._countVote(proposalId, altVoter, uint8(VoteType.For), weight, altParams);

votes = new uint256[](1);
votes[0] = 1;
params = abi.encode(votes);
module._countVote(proposalId, altVoter, uint8(VoteType.For), weight, params);

(address[] memory targets, uint256[] memory values, bytes[] memory calldatas) =
module._formatExecuteParams(proposalId, proposalData);
Expand Down

0 comments on commit c488adb

Please sign in to comment.