From a95f78795a7895ccb66836634c944bd74120fa97 Mon Sep 17 00:00:00 2001 From: Michael Standen Date: Fri, 23 Aug 2024 12:51:14 +1200 Subject: [PATCH] Additional splitter test --- test/payments/PaymentCombiner.t.sol | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/payments/PaymentCombiner.t.sol b/test/payments/PaymentCombiner.t.sol index 1af7f86..6be2494 100644 --- a/test/payments/PaymentCombiner.t.sol +++ b/test/payments/PaymentCombiner.t.sol @@ -65,6 +65,14 @@ contract PaymentCombinerTest is TestHelper, IPaymentCombinerSignals { assertEq(expectedAddr, actualAddr); } + function testRepeatedDeploysFail(address[] memory payees, uint256[] memory shares) public { + (payees, shares) = _validArrays(payees, shares); + combiner.deploy(payees, shares); + + vm.expectRevert(); + combiner.deploy(payees, shares); + } + function testListPayeeSplitters( address[] memory payees1, address[] memory payees2,