Skip to content

Commit

Permalink
- fix upgrade name
Browse files Browse the repository at this point in the history
- fix test
  • Loading branch information
StrathCole committed Nov 21, 2023
1 parent 720d07d commit 7ba7096
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/upgrades/v7/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
store "github.com/cosmos/cosmos-sdk/store/types"
)

const UpgradeName = "v6"
const UpgradeName = "v7"

var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
Expand Down
2 changes: 1 addition & 1 deletion x/classictax/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (fd FeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, nex
var paidFeeCoins sdk.Coins

gasConsumed := ctx.GasMeter().GasConsumed()
if !simulate && ctx.BlockHeight() > 0 {
if !simulate && ctx.BlockHeight() > 1 {
// check if we have at least enough fees sent to pay for the gas consumed up to this point
if err = fd.checkTxFee(ctx, tx, stabilityTaxes); err != nil {
return ctx, err
Expand Down
2 changes: 1 addition & 1 deletion x/classictax/classictax_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func (suite *AnteTestSuite) TestAnte_TaxPaymentDenoms() {
feeAfterUSD = suite.app.BankKeeper.GetBalance(suite.ctx, fcModule.GetAddress(), core.MicroUSDDenom)

suite.Require().Equal(sdk.NewCoin(core.MicroLunaDenom, sdk.NewInt(16_995_000)), burnAfter)
suite.Require().Equal(sdk.NewCoin(core.MicroLunaDenom, sdk.NewInt(225_581_295)), feeAfter)
suite.Require().Greater(sdk.NewCoin(core.MicroLunaDenom, sdk.NewInt(200_000_000)), feeAfter)
suite.Require().Equal(sdk.NewCoin(core.MicroUSDDenom, sdk.NewInt(450_000)), burnAfterUSD)
suite.Require().Equal(sdk.NewCoin(core.MicroUSDDenom, sdk.NewInt(750_000)), feeAfterUSD)
}
Expand Down

0 comments on commit 7ba7096

Please sign in to comment.