Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Aug 22, 2024
1 parent 4fc52cf commit 3111505
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions x/globalfee/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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())
Expand Down
4 changes: 2 additions & 2 deletions x/itc/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion x/tokenfactory/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func NewModifyDenomMetadataCmd() *cobra.Command {
},
{
Denom: ticker,
Exponent: uint32(exponent),
Exponent: uint32(exponent), //nolint:all
Aliases: []string{fullDenom},
},
},
Expand Down

0 comments on commit 3111505

Please sign in to comment.