From d74c35ebca426b4df5dfb0fa0bace9f72bca1765 Mon Sep 17 00:00:00 2001 From: Alexgao001 Date: Wed, 18 Oct 2023 12:05:59 +0800 Subject: [PATCH] register MsgRejectMigrateBucket Gas param for PampasUpgrade --- app/upgrade.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/upgrade.go b/app/upgrade.go index 13ac1fa05..731819f8c 100644 --- a/app/upgrade.go +++ b/app/upgrade.go @@ -4,6 +4,7 @@ import ( serverconfig "github.com/cosmos/cosmos-sdk/server/config" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" + "github.com/cosmos/cosmos-sdk/x/gashub/types" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" bridgemoduletypes "github.com/bnb-chain/greenfield/x/bridge/types" @@ -79,6 +80,9 @@ func (app *App) registerPampasUpgradeHandler() { app.CrossChainKeeper.SetChannelSendPermission(ctx, sdk.ChainID(app.appConfig.CrossChain.DestOpChainId), storagemoduletypes.ObjectChannelId, sdk.ChannelAllow) app.CrossChainKeeper.SetChannelSendPermission(ctx, sdk.ChainID(app.appConfig.CrossChain.DestOpChainId), storagemoduletypes.GroupChannelId, sdk.ChannelAllow) + // register MsgRejectMigrateBucket Gas param + app.GashubKeeper.SetMsgGasParams(ctx, *types.NewMsgGasParamsWithFixedGas("/greenfield.storage.MsgRejectMigrateBucket", 1.2e3)) + return app.mm.RunMigrations(ctx, app.configurator, fromVM) })