diff --git a/ethereum/test/MultisigProxy.t.sol b/ethereum/test/MultisigProxy.t.sol index 150d15e..504f08e 100644 --- a/ethereum/test/MultisigProxy.t.sol +++ b/ethereum/test/MultisigProxy.t.sol @@ -388,21 +388,27 @@ contract MultisigProxyTest is Test { /// @dev UT-FIX-13: deploying with a timelock below the requested floor reverts. function test_constructor_revertsOnTimelockBelowMinTimelock() public { + address[] memory enc = new address[](1); enc[0] = encA1; + address[] memory fed = new address[](1); fed[0] = fedA1; // timelock (1h) is below the requested floor (2h) -> TimelockTooShort vm.expectRevert(IMultisigProxy.TimelockTooShort.selector); - new MultisigProxy(address(bridge), address(cm), _validEnc(), 2, _validFed(), 2, commissionReceiver, 1 hours, 2 hours); + new MultisigProxy(address(bridge), address(cm), enc, 1, fed, 1, commissionReceiver, 1 hours, 2 hours); } /// @dev A zero floor is rejected — it would defeat the purpose of the fix. function test_constructor_revertsOnZeroMinTimelock() public { + address[] memory enc = new address[](1); enc[0] = encA1; + address[] memory fed = new address[](1); fed[0] = fedA1; vm.expectRevert(IMultisigProxy.InvalidMinTimelock.selector); - new MultisigProxy(address(bridge), address(cm), _validEnc(), 2, _validFed(), 2, commissionReceiver, TIMELOCK, 0); + new MultisigProxy(address(bridge), address(cm), enc, 1, fed, 1, commissionReceiver, TIMELOCK, 0); } /// @dev A floor at/above the upper bound leaves no valid range — rejected. function test_constructor_revertsOnMinTimelockTooLong() public { + address[] memory enc = new address[](1); enc[0] = encA1; + address[] memory fed = new address[](1); fed[0] = fedA1; vm.expectRevert(IMultisigProxy.InvalidMinTimelock.selector); - new MultisigProxy(address(bridge), address(cm), _validEnc(), 2, _validFed(), 2, commissionReceiver, TIMELOCK, 30 days); + new MultisigProxy(address(bridge), address(cm), enc, 1, fed, 1, commissionReceiver, TIMELOCK, 30 days); } function test_minTimelock_returnsConfiguredFloor() public view {