Skip to content

Commit 5c51e64

Browse files
committed
fix: test
1 parent d05c6ff commit 5c51e64

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Governance.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,10 @@ contract Governance is Multicall, UserProxyFactory, ReentrancyGuard, IGovernance
523523
int88[] calldata absoluteLQTYVotes,
524524
int88[] calldata absoluteLQTYVetos
525525
) external nonReentrant {
526+
527+
require(_initiatives.length == absoluteLQTYVotes.length, "Length");
528+
require(absoluteLQTYVetos.length == absoluteLQTYVotes.length, "Length");
529+
526530
// @audit To ensure the change is safe, enforce uniqueness
527531
_requireNoDuplicates(_initiatives);
528532
_requireNoDuplicates(_initiativesToReset);

test/VotingPower.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ contract VotingPowerTest is Test {
283283
_allocate(address(baseInitiative1), lqtyAmount, 0);
284284

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

288288
// Can Veto more than allocate
289289
_allocate(address(baseInitiative1), 0, lqtyAmount);

0 commit comments

Comments
 (0)