From 71cebe28a89e3216fe403add3aafa6905dd4afa1 Mon Sep 17 00:00:00 2001 From: Dzung Do Date: Mon, 6 May 2024 15:01:52 +0700 Subject: [PATCH] fix lint error --- app/upgrades/v4/constants.go | 4 ++-- app/upgrades/v4/upgrades.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/upgrades/v4/constants.go b/app/upgrades/v4/constants.go index 5a2bc657..37993546 100644 --- a/app/upgrades/v4/constants.go +++ b/app/upgrades/v4/constants.go @@ -2,6 +2,6 @@ package v4 const ( // UpgradeName defines the on-chain upgrade name. - UpgradeName = "v4-Commission" + UpgradeName = "v4-Commission" NewMinCommisionRate = "0.05" -) \ No newline at end of file +) diff --git a/app/upgrades/v4/upgrades.go b/app/upgrades/v4/upgrades.go index 914d3b87..6a13adb9 100644 --- a/app/upgrades/v4/upgrades.go +++ b/app/upgrades/v4/upgrades.go @@ -3,8 +3,8 @@ package v4 import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" + upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ) func CreateUpgradeHandler( @@ -27,7 +27,7 @@ func fixMinCommisionRate(ctx sdk.Context, staking stakingkeeper.Keeper) { params.MinCommissionRate = newComm staking.SetParams(ctx, params) for _, v := range validators { - // nolint + //nolint if v.Commission.Rate.LT(newComm) { comm, err := staking.UpdateValidatorCommission(ctx, v, newComm) if err != nil {