From 3111505d282bf38fab10593c085f742e7669bf07 Mon Sep 17 00:00:00 2001 From: Harish Marri Date: Thu, 22 Aug 2024 18:49:35 +0530 Subject: [PATCH] lint fixes --- x/globalfee/ante/fee.go | 4 ++-- x/itc/keeper/keeper_test.go | 4 ++-- x/tokenfactory/client/cli/tx.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x/globalfee/ante/fee.go b/x/globalfee/ante/fee.go index 972702b..b3be74d 100644 --- a/x/globalfee/ante/fee.go +++ b/x/globalfee/ante/fee.go @@ -69,7 +69,7 @@ func (mfd FeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, ne } // Get local minimum-gas-prices - localFees := GetMinGasPrice(ctx, int64(feeTx.GetGas())) + localFees := GetMinGasPrice(ctx, int64(feeTx.GetGas())) //nolint:all // CombinedFeeRequirement should never be empty since // global fee is set to its default value, i.e. 0uatom, if empty @@ -160,7 +160,7 @@ func (mfd FeeDecorator) GetGlobalFee(ctx sdk.Context, feeTx sdk.FeeTx) (sdk.Coin requiredGlobalFees := make(sdk.Coins, len(globalMinGasPrices)) // Determine the required fees by multiplying each required minimum gas // price by the gas limit, where fee = ceil(minGasPrice * gasLimit). - glDec := sdkmath.LegacyNewDec(int64(feeTx.GetGas())) + glDec := sdkmath.LegacyNewDec(int64(feeTx.GetGas())) //nolint:all for i, gp := range globalMinGasPrices { fee := gp.Amount.Mul(glDec) requiredGlobalFees[i] = sdk.NewCoin(gp.Denom, fee.Ceil().RoundInt()) diff --git a/x/itc/keeper/keeper_test.go b/x/itc/keeper/keeper_test.go index 751af48..c21ae9b 100644 --- a/x/itc/keeper/keeper_test.go +++ b/x/itc/keeper/keeper_test.go @@ -89,7 +89,7 @@ func (suite *KeeperTestSuite) CreateDefaultCampaign() { defaultTokensPerClaim, sdk.NewInt64Coin( defaultTokensPerClaim.Denom, - defaultTokensPerClaim.Amount.MulRaw(int64(defaultMaxClaims)).Int64(), + defaultTokensPerClaim.Amount.MulRaw(int64(defaultMaxClaims)).Int64(), //nolint:all ), nil, &defaultDistribution, @@ -119,7 +119,7 @@ func (suite *KeeperTestSuite) CreateSecondaryCampaign() { defaultTokensPerClaim, sdk.NewInt64Coin( defaultTokensPerClaim.Denom, - defaultTokensPerClaim.Amount.MulRaw(int64(defaultMaxClaims)).Int64(), + defaultTokensPerClaim.Amount.MulRaw(int64(defaultMaxClaims)).Int64(), //nolint:golint ), &defaultNftMintDetails, &defaultDistribution, diff --git a/x/tokenfactory/client/cli/tx.go b/x/tokenfactory/client/cli/tx.go index 8a86b44..ad78e52 100644 --- a/x/tokenfactory/client/cli/tx.go +++ b/x/tokenfactory/client/cli/tx.go @@ -346,7 +346,7 @@ func NewModifyDenomMetadataCmd() *cobra.Command { }, { Denom: ticker, - Exponent: uint32(exponent), + Exponent: uint32(exponent), //nolint:all Aliases: []string{fullDenom}, }, },