Skip to content

Commit

Permalink
Fix reward test
Browse files Browse the repository at this point in the history
  • Loading branch information
guilherme-brandao committed May 22, 2024
1 parent f2d0a10 commit 6aee0b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions x/emissions/module/rewards/rewards_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,9 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionShouldRewardTopicsWithFulfi
beforeRewardsTopic2FeeRevenue, err := s.emissionsKeeper.GetTopicFeeRevenue(s.ctx, topicId2)
s.Require().NoError(err)

// mint some rewards to give out
s.MintTokensToModule(types.AlloraRewardsAccountName, cosmosMath.NewInt(1000))

block += 1
s.ctx = s.ctx.WithBlockHeight(block)

Expand Down Expand Up @@ -1676,8 +1679,8 @@ func (s *RewardsTestSuite) TestRewardsIncreasesBalance() {
block += epochLength * 3
s.ctx = s.ctx.WithBlockHeight(block)

workerInitialBalanceCoins := sdk.NewCoins(sdk.NewCoin(params.DefaultBondDenom, cosmosMath.NewInt(1000)))
s.bankKeeper.MintCoins(s.ctx, types.AlloraRewardsAccountName, workerInitialBalanceCoins)
// mint some rewards to give out
s.MintTokensToModule(types.AlloraRewardsAccountName, cosmosMath.NewInt(1000))

// Trigger end block - rewards distribution
err = s.emissionsAppModule.EndBlock(s.ctx)
Expand Down

0 comments on commit 6aee0b2

Please sign in to comment.