Skip to content

Commit

Permalink
chore: adding host enabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
chatton committed Nov 21, 2023
1 parent 15797db commit 0d0e904
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/apps/27-interchain-accounts/host/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ func (IBCModule) OnChanUpgradeInit(ctx sdk.Context, portID, channelID string, or

// OnChanUpgradeTry implements the IBCModule interface
func (im IBCModule) OnChanUpgradeTry(ctx sdk.Context, portID, channelID string, order channeltypes.Order, connectionHops []string, counterpartyVersion string) (string, error) {
if !im.keeper.GetParams(ctx).HostEnabled {
return "", types.ErrHostSubModuleDisabled
}

return im.keeper.OnChanUpgradeTry(ctx, portID, channelID, order, connectionHops, counterpartyVersion)
}

Expand Down

0 comments on commit 0d0e904

Please sign in to comment.