Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
neitdung committed May 6, 2024
1 parent 21be234 commit 71cebe2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/upgrades/v4/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package v4

const (
// UpgradeName defines the on-chain upgrade name.
UpgradeName = "v4-Commission"
UpgradeName = "v4-Commission"
NewMinCommisionRate = "0.05"
)
)
4 changes: 2 additions & 2 deletions app/upgrades/v4/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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 {
Expand Down

0 comments on commit 71cebe2

Please sign in to comment.