From 765e96262ac71f5aeecf0fb7eac5d0a87935a116 Mon Sep 17 00:00:00 2001 From: Marri Harish Date: Wed, 11 Sep 2024 16:23:43 +0530 Subject: [PATCH] upgrade: gov upgrade handler changes (#186) * update readme * go.mod: bump up wasmd * updated expedited proposal min deposit * fix lint * fix lint * update globalfee params --- app/upgrades/v5/upgrades.go | 2 +- x/globalfee/types/params.go | 4 ++-- x/tokenfactory/client/cli/tx.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/upgrades/v5/upgrades.go b/app/upgrades/v5/upgrades.go index 79602447..d2a78d9f 100644 --- a/app/upgrades/v5/upgrades.go +++ b/app/upgrades/v5/upgrades.go @@ -36,7 +36,7 @@ func CreateV5UpgradeHandler( govParams.ExpeditedThreshold = "0.7" expeditedVotingPeriod := time.Hour * 24 govParams.ExpeditedVotingPeriod = &expeditedVotingPeriod - govParams.ExpeditedMinDeposit = sdk.NewCoins(sdk.NewCoin("uflix", sdkmath.NewIntWithDecimal(2500, 6))) + govParams.ExpeditedMinDeposit = sdk.NewCoins(sdk.NewCoin("uflix", sdkmath.NewIntWithDecimal(15000, 6))) err = keepers.GovKeeper.Params.Set(ctx, govParams) if err != nil { diff --git a/x/globalfee/types/params.go b/x/globalfee/types/params.go index 5db865f2..df894ca3 100644 --- a/x/globalfee/types/params.go +++ b/x/globalfee/types/params.go @@ -9,14 +9,14 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -var maxTotalBypassMinFeeMsgGasUsage = 2_000_000 +var maxTotalBypassMinFeeMsgGasUsage = uint64(2_000_000) // DefaultParams returns default parameters func DefaultParams() Params { return Params{ MinimumGasPrices: sdk.DecCoins(nil), BypassMinFeeMsgTypes: []string{}, - MaxTotalBypassMinFeeMsgGasUsage: uint64(maxTotalBypassMinFeeMsgGasUsage), + MaxTotalBypassMinFeeMsgGasUsage: maxTotalBypassMinFeeMsgGasUsage, } } diff --git a/x/tokenfactory/client/cli/tx.go b/x/tokenfactory/client/cli/tx.go index ad78e521..8a86b44b 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), //nolint:all + Exponent: uint32(exponent), Aliases: []string{fullDenom}, }, },