Skip to content

Commit f6923b9

Browse files
committed
test: fix rewards manager tests
Signed-off-by: Tomás Migone <[email protected]>
1 parent 7cd08cb commit f6923b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/contracts/test/unit/rewards/rewards.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ describe('Rewards', () => {
466466
await helpers.mine(ISSUANCE_RATE_PERIODS)
467467

468468
// Rewards
469-
const contractRewards = await rewardsManager.getRewards(allocationID1)
469+
const contractRewards = await rewardsManager.getRewards(staking.address, allocationID1)
470470

471471
// We trust using this function in the test because we tested it
472472
// standalone in a previous test
@@ -504,12 +504,12 @@ describe('Rewards', () => {
504504
await staking.connect(indexer1).closeAllocation(allocationID1, randomHexBytes())
505505

506506
// Rewards
507-
const contractRewards = await rewardsManager.getRewards(allocationID1)
507+
const contractRewards = await rewardsManager.getRewards(staking.address, allocationID1)
508508
expect(contractRewards).eq(BigNumber.from(0))
509509
})
510510
it('rewards should be zero if the allocation does not exist', async function () {
511511
// Rewards
512-
const contractRewards = await rewardsManager.getRewards(allocationIDNull)
512+
const contractRewards = await rewardsManager.getRewards(staking.address, allocationIDNull)
513513
expect(contractRewards).eq(BigNumber.from(0))
514514
})
515515
})
@@ -1026,7 +1026,7 @@ describe('Rewards', () => {
10261026
await staking.connect(assetHolder).collect(tokensToCollect, allocationID1)
10271027

10281028
// check rewards diff
1029-
await rewardsManager.getRewards(allocationID1).then(formatGRT)
1029+
await rewardsManager.getRewards(staking.address, allocationID1).then(formatGRT)
10301030

10311031
await helpers.mine()
10321032
const accrual = await getRewardsAccrual(subgraphs)

0 commit comments

Comments
 (0)