From c488adbd479f57a758f7b858d654cb68860e192d Mon Sep 17 00:00:00 2001 From: jj_ranalli Date: Wed, 21 Jun 2023 19:07:31 +0200 Subject: [PATCH] nit: test logic --- test/ApprovalVotingModule.t.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/ApprovalVotingModule.t.sol b/test/ApprovalVotingModule.t.sol index bbf3de7..f505253 100644 --- a/test/ApprovalVotingModule.t.sol +++ b/test/ApprovalVotingModule.t.sol @@ -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);