From c574b35dbcf2d13dbff14b1bf0c7d2f93190b4c8 Mon Sep 17 00:00:00 2001 From: YBM Date: Wed, 4 Sep 2024 16:28:41 -0500 Subject: [PATCH] test: testRevertConstructorZeroAddressParams; --- src/test/TestGsmConverter.t.sol | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/test/TestGsmConverter.t.sol b/src/test/TestGsmConverter.t.sol index 523e8c6f..f44aad18 100644 --- a/src/test/TestGsmConverter.t.sol +++ b/src/test/TestGsmConverter.t.sol @@ -35,4 +35,18 @@ contract TestGsmConverter is TestGhoBase { 'Unexpected redeemed asset address' ); } + + function testRevertConstructorZeroAddressParams() public { + vm.expectRevert('ZERO_ADDRESS_NOT_VALID'); + new GsmConverter(address(0), address(REDEMPTION), address(BUIDL_TOKEN), address(USDC_TOKEN)); + + vm.expectRevert('ZERO_ADDRESS_NOT_VALID'); + new GsmConverter(address(GHO_GSM), address(0), address(BUIDL_TOKEN), address(USDC_TOKEN)); + + vm.expectRevert('ZERO_ADDRESS_NOT_VALID'); + new GsmConverter(address(GHO_GSM), address(REDEMPTION), address(0), address(USDC_TOKEN)); + + vm.expectRevert('ZERO_ADDRESS_NOT_VALID'); + new GsmConverter(address(GHO_GSM), address(REDEMPTION), address(BUIDL_TOKEN), address(0)); + } }