From 79b12ba92a63d720c4f7aad82c3277c90ca5e221 Mon Sep 17 00:00:00 2001 From: Flocqst Date: Wed, 24 Jul 2024 11:35:07 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Adjust=20test=20to=20new=20StakingR?= =?UTF-8?q?ewardsNotifier=20constructor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StakingRewardsNotifier.t.sol | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/foundry/unit/StakingRewardsNotifier/StakingRewardsNotifier.t.sol b/test/foundry/unit/StakingRewardsNotifier/StakingRewardsNotifier.t.sol index ce9f3137c..c2e955bfe 100644 --- a/test/foundry/unit/StakingRewardsNotifier/StakingRewardsNotifier.t.sol +++ b/test/foundry/unit/StakingRewardsNotifier/StakingRewardsNotifier.t.sol @@ -20,17 +20,22 @@ contract StakingRewardsNotifierTest is DefaultStakingV2Setup { function testCannotDeployWithZeroOwnerAddress() public { vm.expectRevert(IStakingRewardsNotifier.ZeroAddress.selector); - new StakingRewardsNotifier(address(0), address(kwenta), address(supplySchedule)); + new StakingRewardsNotifier(address(0), address(kwenta), address(usdc), address(supplySchedule)); } function testCannotDeployWithZeroKwentaAddress() public { vm.expectRevert(IStakingRewardsNotifier.ZeroAddress.selector); - new StakingRewardsNotifier(address(this), address(0), address(supplySchedule)); + new StakingRewardsNotifier(address(this), address(0), address(usdc), address(supplySchedule)); + } + + function testCannotDeployWithZeroUsdcAddress() public { + vm.expectRevert(IStakingRewardsNotifier.ZeroAddress.selector); + new StakingRewardsNotifier(address(this), address(kwenta), address(0), address(supplySchedule)); } function testCannotDeployWithZeroSupplyScheduleAddress() public { vm.expectRevert(IStakingRewardsNotifier.ZeroAddress.selector); - new StakingRewardsNotifier(address(this), address(kwenta), address(0)); + new StakingRewardsNotifier(address(this), address(kwenta), address(usdc), address(0)); } function testNotifiableRewardAccumulatorSetStakingV2OnlyOwner() public {