Skip to content

Commit

Permalink
Merge branch 'diego/ora-1452-stress-tests-fix-nonces-error' of github…
Browse files Browse the repository at this point in the history
…:allora-network/allora-chain into diego/ora-1452-stress-tests-fix-nonces-error
  • Loading branch information
relyt29 committed May 22, 2024
2 parents ecc9807 + 6aee0b2 commit 416d760
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 @@ -1681,8 +1684,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 416d760

Please sign in to comment.