Skip to content

Commit

Permalink
fix relay.go
Browse files Browse the repository at this point in the history
  • Loading branch information
antstalepresh committed Jul 24, 2024
1 parent 8f447f6 commit 29740b9
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 @@ -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, ":", "/")
}
Expand Down

0 comments on commit 29740b9

Please sign in to comment.