From 1b2ba8dad955873cde909bdd2bc6852f86f7dbca Mon Sep 17 00:00:00 2001 From: mmsqe Date: Mon, 14 Oct 2024 09:04:25 +0800 Subject: [PATCH] Apply suggestions from code review Signed-off-by: mmsqe --- app/upgrades.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/upgrades.go b/app/upgrades.go index e363e3984..df63304a6 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -10,7 +10,6 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types" ) func (app *ChainApp) RegisterUpgradeHandlers(cdc codec.BinaryCodec) { @@ -22,8 +21,7 @@ func (app *ChainApp) RegisterUpgradeHandlers(cdc codec.BinaryCodec) { } sdkCtx := sdk.UnwrapSDKContext(ctx) { - var params types.Params - params = app.ICAHostKeeper.GetParams(sdkCtx) + params := app.ICAHostKeeper.GetParams(sdkCtx) msg := "/ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe" if !slices.ContainsFunc(params.AllowMessages, func(allowMsg string) bool { return allowMsg == "*" || allowMsg == msg