Skip to content

Commit

Permalink
chore: switch code ordering (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner authored Mar 1, 2022
1 parent f8b4345 commit e51e2c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/apps/29-fee/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ func (im IBCModule) OnChanCloseInit(
portID,
channelID string,
) error {
if err := im.app.OnChanCloseInit(ctx, portID, channelID); err != nil {
return err
}

// delete fee enabled on channel
// and refund any remaining fees escrowed on channel
im.keeper.DeleteFeeEnabled(ctx, portID, channelID)
Expand All @@ -157,7 +161,8 @@ func (im IBCModule) OnChanCloseInit(
if err != nil {
im.keeper.DisableAllChannels(ctx)
}
return im.app.OnChanCloseInit(ctx, portID, channelID)

return nil
}

// OnChanCloseConfirm implements the IBCModule interface
Expand Down

0 comments on commit e51e2c9

Please sign in to comment.