Skip to content

Commit

Permalink
follow up nits to #1565 (#1598)
Browse files Browse the repository at this point in the history
* delete test files and add error to transfer types

* review comments
  • Loading branch information
Carlos Rodriguez authored Jun 29, 2022
1 parent f283d12 commit ecf3543
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 112 deletions.
81 changes: 0 additions & 81 deletions modules/apps/27-interchain-accounts/host/types/ack_test.go

This file was deleted.

3 changes: 1 addition & 2 deletions modules/apps/transfer/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"

icatypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/types"
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/keeper"
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"
Expand Down Expand Up @@ -181,7 +180,7 @@ func (im IBCModule) OnRecvPacket(
var data types.FungibleTokenPacketData
var ackErr error
if err := types.ModuleCdc.UnmarshalJSON(packet.GetData(), &data); err != nil {
ackErr = sdkerrors.Wrapf(icatypes.ErrInvalidChannelFlow, "cannot unmarshal ICS-20 transfer packet data")
ackErr = sdkerrors.Wrapf(sdkerrors.ErrInvalidType, "cannot unmarshal ICS-20 transfer packet data")
ack = channeltypes.NewErrorAcknowledgement(ackErr)
}

Expand Down
29 changes: 0 additions & 29 deletions modules/apps/transfer/types/ack_test.go

This file was deleted.

0 comments on commit ecf3543

Please sign in to comment.