Skip to content

Commit

Permalink
Update modules/apps/29-fee/ibc_middleware.go
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan authored Jul 6, 2023
1 parent 391d44b commit 66ad804
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/apps/29-fee/ibc_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,8 @@ func (im IBCMiddleware) OnTimeoutPacket(
func (im IBCMiddleware) OnChanUpgradeInit(ctx sdk.Context, portID, channelID string, order channeltypes.Order, connectionHops []string, sequence uint64, version, previousVersion string) (string, error) {
var versionMetadata types.Metadata
if err := types.ModuleCdc.UnmarshalJSON([]byte(version), &versionMetadata); err != nil {
// Since it is valid for fee version to not be specified, the above middleware version may be for a middleware
// lower down in the stack. Thus, if it is not a fee version we pass the entire version string onto the underlying
// application.
// Since it is valid for fee version to not be specified, the above upgrade version may be for a middleware
// or application further down in the stack. Thus, if it is not a fee version we pass the entire version string onto the underlying application.
return im.app.OnChanUpgradeInit(ctx, portID, channelID, order, connectionHops, sequence, version, previousVersion)
}

Expand Down

0 comments on commit 66ad804

Please sign in to comment.