Skip to content

Commit

Permalink
✅ fix stakingRewardsNotifier constructor in Hardhat contract tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Flocqst committed Jul 24, 2024
1 parent 7159c4e commit 38114f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/local/contracts/RewardEscrowV2.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,15 @@ const deployEscrowMigrator = async (
return await EscrowMigrator.at(escrowMigrator.address);
};

const deployRewardsNotifier = async (owner, token, supplySchedule) => {
const deployRewardsNotifier = async (owner, token, usdc, supplySchedule) => {
const StakingRewardsNotifierFactory = await ethers.getContractFactory(
"StakingRewardsNotifier"
);

const rewardsNotifier = await StakingRewardsNotifierFactory.deploy(
owner,
token,
usdc,
supplySchedule
);
await rewardsNotifier.deployed();
Expand Down Expand Up @@ -170,6 +171,7 @@ contract("RewardEscrowV2 KWENTA", ([owner, staker1, staker2, treasuryDAO]) => {
rewardsNotifier = await deployRewardsNotifier(
owner,
stakingToken.address,
USDC_ADDRESS,
supplySchedule.address
);

Expand Down

0 comments on commit 38114f2

Please sign in to comment.