Skip to content

Commit

Permalink
- gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
StrathCole committed Nov 21, 2023
1 parent 0d800ff commit 720d07d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions custom/wasm/keeper/handler_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ func DeductTaxFromCoins(ctx sdk.Context, ctk classictaxkeeper.Keeper, coins sdk.

taxes := ctk.ComputeBurnTax(ctx, coins)

var (
neg bool
)
var neg bool

if !taxes.IsZero() {
// Deduct tax from coins
Expand All @@ -122,9 +120,7 @@ func DeductTaxFromCoins(ctx sdk.Context, ctk classictaxkeeper.Keeper, coins sdk.
}

func DeductTaxFromMessage(ctx sdk.Context, ctk classictaxkeeper.Keeper, msg sdk.Msg) error {
var (
err error
)
var err error

taxableMsgTypes := ctk.GetTaxableMsgTypes(ctx)

Expand Down
1 change: 0 additions & 1 deletion x/classictax/classictax_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ func (suite *AnteTestSuite) TestAnte_GetTaxCoins() {
// exchange rate is (from gas fees) 0.75 (uusd) / 28.325 (uluna) = 0.026478376
suite.Require().Equal(sdk.NewCoins(sdk.NewCoin(core.MicroUSDDenom, sdk.NewInt(5_000_000))), tax)
suite.Require().Equal(sdk.NewCoin(core.MicroLunaDenom, sdk.NewInt(188_833_333)), tax2)

}

func (suite *AnteTestSuite) TestAnte_UnderpayTax() {
Expand Down
1 change: 0 additions & 1 deletion x/classictax/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
// and the keeper's address to pubkey map
func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data *types.GenesisState) {
keeper.SetParams(ctx, data.Params)

}

// ExportGenesis writes the current store values
Expand Down

0 comments on commit 720d07d

Please sign in to comment.