diff --git a/modules/apps/transfer/keeper/relay.go b/modules/apps/transfer/keeper/relay.go index 9727944d923..d4295e4af7d 100644 --- a/modules/apps/transfer/keeper/relay.go +++ b/modules/apps/transfer/keeper/relay.go @@ -367,6 +367,12 @@ func (k Keeper) refundPacketToken(ctx sdk.Context, packet channeltypes.Packet, d if types.SenderChainIsSource(packet.GetSourcePort(), packet.GetSourceChannel(), data.Denom) { // unescrow tokens back to sender escrowAddress := types.GetEscrowAddress(packet.GetSourcePort(), packet.GetSourceChannel()) + + prefix := k.GetSlashPrefix(ctx) + if prefix != "" && strings.HasPrefix(token.Denom, prefix+":") { + token.Denom = strings.ReplaceAll(token.Denom, ":", "/") + } + return k.unescrowToken(ctx, escrowAddress, sender, token) }