Skip to content

Commit cc51d29

Browse files
Nikolas De GiorgisDimitrisJim
Nikolas De Giorgis
andauthored
chore: remove fallback logic for GetChannel in timeout handler (#7490)
* chore: remove fallback logic for GetChannel in timeout handler * Update modules/core/04-channel/v2/keeper/packet.go Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com> --------- Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
1 parent 1cf3539 commit cc51d29

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/core/04-channel/v2/keeper/packet.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,7 @@ func (k *Keeper) timeoutPacket(
288288
// that the packet was indeed sent by our counterparty.
289289
channel, ok := k.GetChannel(ctx, packet.SourceChannel)
290290
if !ok {
291-
// TODO: figure out how aliasing will work when more than one payload is sent.
292-
channel, ok = k.convertV1Channel(ctx, packet.Payloads[0].SourcePort, packet.SourceChannel)
293-
if !ok {
294-
return errorsmod.Wrap(types.ErrChannelNotFound, packet.DestinationChannel)
295-
}
291+
return errorsmod.Wrap(types.ErrChannelNotFound, packet.SourceChannel)
296292
}
297293
if channel.CounterpartyChannelId != packet.DestinationChannel {
298294
return errorsmod.Wrapf(channeltypes.ErrInvalidChannelIdentifier, "counterparty channel id (%s) does not match packet destination channel id (%s)", channel.CounterpartyChannelId, packet.DestinationChannel)

0 commit comments

Comments
 (0)