From 29740b95bb323d533b06b8b28d9bb1f3116af337 Mon Sep 17 00:00:00 2001 From: antstalepresh Date: Wed, 24 Jul 2024 20:04:48 +0800 Subject: [PATCH] fix relay.go --- modules/apps/transfer/keeper/relay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/apps/transfer/keeper/relay.go b/modules/apps/transfer/keeper/relay.go index d4295e4af7d..caf3bc8dfaf 100644 --- a/modules/apps/transfer/keeper/relay.go +++ b/modules/apps/transfer/keeper/relay.go @@ -368,7 +368,7 @@ func (k Keeper) refundPacketToken(ctx sdk.Context, packet channeltypes.Packet, d // unescrow tokens back to sender escrowAddress := types.GetEscrowAddress(packet.GetSourcePort(), packet.GetSourceChannel()) - prefix := k.GetSlashPrefix(ctx) + prefix := k.GetParams(ctx).SlashPrefix if prefix != "" && strings.HasPrefix(token.Denom, prefix+":") { token.Denom = strings.ReplaceAll(token.Denom, ":", "/") }