From 720d07ddee431808717f3f794c7fcb206c10a5d8 Mon Sep 17 00:00:00 2001 From: StrathCole Date: Tue, 21 Nov 2023 11:27:50 +0100 Subject: [PATCH] - gofumpt --- custom/wasm/keeper/handler_plugin.go | 8 ++------ x/classictax/classictax_test.go | 1 - x/classictax/genesis.go | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/custom/wasm/keeper/handler_plugin.go b/custom/wasm/keeper/handler_plugin.go index 77ca47b19..711d727f3 100644 --- a/custom/wasm/keeper/handler_plugin.go +++ b/custom/wasm/keeper/handler_plugin.go @@ -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 @@ -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) diff --git a/x/classictax/classictax_test.go b/x/classictax/classictax_test.go index 0bd90a0ac..14f35887f 100644 --- a/x/classictax/classictax_test.go +++ b/x/classictax/classictax_test.go @@ -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() { diff --git a/x/classictax/genesis.go b/x/classictax/genesis.go index 726e8683c..c30503b77 100644 --- a/x/classictax/genesis.go +++ b/x/classictax/genesis.go @@ -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