Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
GalloDaSballo committed Oct 18, 2024
1 parent d05c6ff commit 5c51e64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Governance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ contract Governance is Multicall, UserProxyFactory, ReentrancyGuard, IGovernance
int88[] calldata absoluteLQTYVotes,
int88[] calldata absoluteLQTYVetos
) external nonReentrant {

require(_initiatives.length == absoluteLQTYVotes.length, "Length");
require(absoluteLQTYVetos.length == absoluteLQTYVotes.length, "Length");

// @audit To ensure the change is safe, enforce uniqueness
_requireNoDuplicates(_initiatives);
_requireNoDuplicates(_initiativesToReset);
Expand Down
2 changes: 1 addition & 1 deletion test/VotingPower.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ contract VotingPowerTest is Test {
_allocate(address(baseInitiative1), lqtyAmount, 0);

// Can allocate less
_allocate(address(baseInitiative1), lqtyAmount - 1, 0);
_allocate(address(baseInitiative1), lqtyAmount / 2 - 1, 0);

// Can Veto more than allocate
_allocate(address(baseInitiative1), 0, lqtyAmount);
Expand Down

0 comments on commit 5c51e64

Please sign in to comment.