Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chatton committed Jan 3, 2024
1 parent 1a0b3c4 commit b210d72
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modules/core/05-port/types/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type IBCModule interface {
// This guarantees that in-flight packets are correctly flushed using the existing channel parameters.
type UpgradableModule interface {
// OnChanUpgradeInit enables additional custom logic to be executed when the channel upgrade is initialized.
// It must validate the proposed version, order, and connection hops.
// It must validate the proposed version, order, and connection hops.
// Note: in the case of crossing hellos, this callback may be executed on both chains.
OnChanUpgradeInit(
ctx sdk.Context,
Expand All @@ -122,8 +122,8 @@ type UpgradableModule interface {
) (string, error)

// OnChanUpgradeTry enables additional custom logic to be executed in the ChannelUpgradeTry step of the
// channel upgrade handshake. It must validate the proposed version (provided by the counterparty), order,
// and connection hops.
// channel upgrade handshake. It must validate the proposed version (provided by the counterparty), order,
// and connection hops.
OnChanUpgradeTry(
ctx sdk.Context,
portID, channelID string,
Expand All @@ -142,8 +142,8 @@ type UpgradableModule interface {
) error

// OnChanUpgradeOpen enables additional custom logic to be executed when the channel upgrade has successfully completed, and the channel
// has returned to the OPEN state. Any logic associated with changing of the channel fields should be performed
// in this callback.
// has returned to the OPEN state. Any logic associated with changing of the channel fields should be performed
// in this callback.
OnChanUpgradeOpen(
ctx sdk.Context,
portID,
Expand All @@ -154,10 +154,10 @@ type UpgradableModule interface {
)

// OnChanUpgradeRestore enables additional custom logic to be executed when any of the following occur:
// - the channel upgrade is aborted.
// - the channel upgrade is cancelled.
// - the channel upgrade times out.
// Any logic set due to an upgrade attempt should be reverted in this callback.
// - the channel upgrade is aborted.
// - the channel upgrade is cancelled.
// - the channel upgrade times out.
// Any logic set due to an upgrade attempt should be reverted in this callback.
OnChanUpgradeRestore(
ctx sdk.Context,
portID,
Expand Down

0 comments on commit b210d72

Please sign in to comment.