diff --git a/app/app.go b/app/app.go index ff995e01e..530ad9854 100644 --- a/app/app.go +++ b/app/app.go @@ -1545,7 +1545,7 @@ func (a *App) ModuleAccountsPermissions() map[string][]string { func (a *App) registerUpgradeHandlers() { a.UpgradeKeeper.SetUpgradeHandler( tv14.UpgradeName, - tv14.CreateUpgradeHandlerV14(a.mm, a.configurator, a.AuctionKeeperSkip, a.LendKeeper, a.WasmKeeper, *a.StakingKeeper, a.MintKeeper, a.SlashingKeeper, a.BandoracleKeeper, a.AccountKeeper), + tv14.CreateUpgradeHandlerV14(a.mm, a.configurator, a.AuctionKeeperSkip, a.LendKeeper, a.WasmKeeper, *a.StakingKeeper, a.MintKeeper, a.SlashingKeeper, a.BandoracleKeeper), ) // When a planned update height is reached, the old binary will panic // writing on disk the height and name of the update that triggered it diff --git a/app/upgrades/testnet/v14/upgrade_test.go b/app/upgrades/testnet/v14/upgrade_test.go index d4ed4ecaa..9d5d7e0de 100644 --- a/app/upgrades/testnet/v14/upgrade_test.go +++ b/app/upgrades/testnet/v14/upgrade_test.go @@ -56,7 +56,4 @@ func postUpgradeChecks(s *UpgradeTestSuite) { wp := s.App.WasmKeeper.GetParams(s.Ctx) s.Require().Equal(wp.CodeUploadAccess, wasmtypes.AllowNobody) - // ensure auth params are updated - ap := s.App.AccountKeeper.GetParams(s.Ctx) - s.Require().Equal(ap.TxSizeCostPerByte, uint64(20)) } diff --git a/app/upgrades/testnet/v14/upgrades.go b/app/upgrades/testnet/v14/upgrades.go index c17819912..5981f562d 100644 --- a/app/upgrades/testnet/v14/upgrades.go +++ b/app/upgrades/testnet/v14/upgrades.go @@ -8,7 +8,6 @@ import ( lendkeeper "github.com/comdex-official/comdex/x/lend/keeper" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper" slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" @@ -29,7 +28,6 @@ func CreateUpgradeHandlerV14( MintKeeper mintkeeper.Keeper, SlashingKeeper slashingkeeper.Keeper, bandoracleKeeper bandoraclemodulekeeper.Keeper, - accountKeeper authkeeper.AccountKeeper, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { @@ -77,14 +75,6 @@ func CreateUpgradeHandlerV14( logger.Info(fmt.Sprintf("updated bandData to %v", bandData)) } - // update tx size cost per byte - authParams := accountKeeper.GetParams(ctx) - authParams.TxSizeCostPerByte = authParams.TxSizeCostPerByte * 2 - if err = accountKeeper.SetParams(ctx, authParams); err != nil { - return nil, err - } - logger.Info(fmt.Sprintf("updated auth params to %v", accountKeeper.GetParams(ctx))) - //TODO: uncomment this before mainnet upgrade //UpdateLendParams(ctx, lendKeeper) return vm, err