Skip to content

Commit

Permalink
chore: replace dummy error with correct error type (#5177)
Browse files Browse the repository at this point in the history
  • Loading branch information
chatton authored Nov 28, 2023
1 parent 690e885 commit 39df8d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/capability/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func NewAppModuleBasic(cdc codec.Codec) AppModuleBasic {
}

// Name returns the capability module's name.
func (am AppModuleBasic) Name() string {
func (AppModuleBasic) Name() string {
return types.ModuleName
}

Expand Down
3 changes: 1 addition & 2 deletions modules/core/04-channel/keeper/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package keeper

import (
"bytes"
"fmt"
"strconv"

errorsmod "cosmossdk.io/errors"
Expand Down Expand Up @@ -173,7 +172,7 @@ func (k Keeper) TimeoutExecuted(
// upgrade fields have been set but the timeout has not. This can happen when the counterparty
// upgrade is partially written in WriteUpgradeTryChannel.
} else if counterpartyUpgrade.Fields.Version != "" {
k.MustAbortUpgrade(ctx, packet.GetSourcePort(), packet.GetSourceChannel(), fmt.Errorf("uh oh"))
k.MustAbortUpgrade(ctx, packet.GetSourcePort(), packet.GetSourceChannel(), types.ErrInvalidUpgrade)
}
}

Expand Down

0 comments on commit 39df8d2

Please sign in to comment.