Skip to content

Commit

Permalink
fix: fix to return 0 and error
Browse files Browse the repository at this point in the history
  • Loading branch information
queencre committed Dec 20, 2022
1 parent 925e954 commit da41d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/apps/transfer/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (k Keeper) sendTransfer(
}

if strings.HasPrefix(token.Denom, "pool") {
return sdkerrors.Wrap(types.ErrNotAllowedDenom, token.Denom)
return 0, sdkerrors.Wrap(types.ErrNotAllowedDenom, token.Denom)
}

sourceChannelEnd, found := k.channelKeeper.GetChannel(ctx, sourcePort, sourceChannel)
Expand Down

0 comments on commit da41d2b

Please sign in to comment.