Skip to content

Commit

Permalink
rebase develop 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Feb 16, 2024
1 parent 3516f92 commit e0398dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/emissions/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func TestValidatorRewards(t *testing.T) {
// Setup module accounts for emission pools
_ = sk.AuthKeeper.GetModuleAccount(ctx, emissionstypes.UndistributedObserverRewardsPool).GetAddress()
_ = sk.AuthKeeper.GetModuleAccount(ctx, emissionstypes.UndistributedTssRewardsPool).GetAddress()
feeCollecterAddress := sk.AuthKeeper.GetModuleAccount(ctx, types.FeeCollectorName).GetAddress()
feeCollectorAddress := sk.AuthKeeper.GetModuleAccount(ctx, types.FeeCollectorName).GetAddress()
_ = sk.AuthKeeper.GetModuleAccount(ctx, emissionstypes.ModuleName).GetAddress()
blockRewards := emissionstypes.BlockReward
// Produce blocks and distribute rewards
Expand All @@ -128,6 +128,6 @@ func TestValidatorRewards(t *testing.T) {
emissionsModule.BeginBlocker(ctx, *k)
ctx = ctx.WithBlockHeight(ctx.BlockHeight() + 1)
}
feeCollecterBalance := sk.BankKeeper.GetBalance(ctx, feeCollecterAddress, config.BaseDenom).Amount
assert.Equal(t, feeCollecterBalance, validatorRewards.Mul(sdk.NewInt(100)))
feeCollectorBalance := sk.BankKeeper.GetBalance(ctx, feeCollectorAddress, config.BaseDenom).Amount
assert.Equal(t, feeCollectorBalance, validatorRewards.Mul(sdk.NewInt(100)))
}

0 comments on commit e0398dd

Please sign in to comment.