Skip to content

Commit

Permalink
map on refundPacketToken
Browse files Browse the repository at this point in the history
  • Loading branch information
codehans authored and antstalepresh committed Jul 23, 2024
1 parent daedc9f commit 8f447f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/apps/transfer/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 371 in modules/apps/transfer/keeper/relay.go

View workflow job for this annotation

GitHub Actions / goreleaser

k.GetSlashPrefix undefined (type Keeper has no field or method GetSlashPrefix)

Check failure on line 371 in modules/apps/transfer/keeper/relay.go

View workflow job for this annotation

GitHub Actions / lint

k.GetSlashPrefix undefined (type Keeper has no field or method GetSlashPrefix)) (typecheck)

Check failure on line 371 in modules/apps/transfer/keeper/relay.go

View workflow job for this annotation

GitHub Actions / lint

k.GetSlashPrefix undefined (type Keeper has no field or method GetSlashPrefix)) (typecheck)
if prefix != "" && strings.HasPrefix(token.Denom, prefix+":") {
token.Denom = strings.ReplaceAll(token.Denom, ":", "/")
}

return k.unescrowToken(ctx, escrowAddress, sender, token)
}

Expand Down

0 comments on commit 8f447f6

Please sign in to comment.