Skip to content

Commit

Permalink
undo the mintkeeper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spoo-bar committed Oct 4, 2023
1 parent f3b3510 commit d9b4697
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x/rewards/mintbankkeeper/keeper_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package mintbankkeeper_test

import (
"math"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -177,7 +176,7 @@ func TestMintBankKeeper(t *testing.T) {
}
require.True(t, found)

maxGasExpected := uint64(math.MaxUint64)
maxGasExpected := uint64(0)
if tc.blockMaxGas > 0 {
maxGasExpected = uint64(tc.blockMaxGas)
}
Expand All @@ -188,7 +187,7 @@ func TestMintBankKeeper(t *testing.T) {

// Check minimum consensus fee record
minConsFeeReceived, minConfFeeFound := keepers.RewardsKeeper.GetState().MinConsensusFee(ctx).GetFee()
if maxGasExpected == uint64(math.MaxUint64) || rewardsDiffExpected.IsZero() {
if maxGasExpected == 0 || rewardsDiffExpected.IsZero() {
assert.False(t, minConfFeeFound)
} else {
require.True(t, minConfFeeFound)
Expand Down

0 comments on commit d9b4697

Please sign in to comment.