Skip to content

Commit

Permalink
nit: damian
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed May 7, 2024
1 parent 0ac2e98 commit 817198b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions modules/apps/transfer/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ func (im IBCModule) OnChanOpenTry(
counterparty channeltypes.Counterparty,
counterpartyVersion string,
) (string, error) {
logger := im.keeper.Logger(ctx)
if err := ValidateTransferChannelParams(ctx, im.keeper, order, portID, channelID); err != nil {
return "", err
}
Expand All @@ -124,8 +123,7 @@ func (im IBCModule) OnChanOpenTry(

if counterpartyVersion != types.Version {
// Propose the current version
logger.Debug(fmt.Sprintf("invalid counterparty version: expected %s, got %s", types.Version, counterpartyVersion))
logger.Debug(fmt.Sprintf("proposing the current version: %s", types.Version))
im.keeper.Logger(ctx).Debug("invalid counterparty version, proposing current app version", "counterpartyVersion", counterpartyVersion, "version", types.Version)
return types.Version, nil
}

Expand Down
2 changes: 1 addition & 1 deletion modules/apps/transfer/ibc_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (suite *TransferTestSuite) TestOnChanOpenTry() {
"success", func() {}, nil,
},
{
"success: invalid counterparty version", func() {
"success: invalid counterparty version proposes new version", func() {
// transfer module will propose the default version
counterpartyVersion = "version"
}, nil,
Expand Down

0 comments on commit 817198b

Please sign in to comment.