Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: mmsqe <[email protected]>
  • Loading branch information
mmsqe authored Oct 14, 2024
1 parent 5db4448 commit 1b2ba8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -22,8 +21,7 @@ func (app *ChainApp) RegisterUpgradeHandlers(cdc codec.BinaryCodec) {
}
sdkCtx := sdk.UnwrapSDKContext(ctx)

Check warning on line 22 in app/upgrades.go

View check run for this annotation

Codecov / codecov/patch

app/upgrades.go#L22

Added line #L22 was not covered by tests
{
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
Expand Down

0 comments on commit 1b2ba8d

Please sign in to comment.