@@ -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