Skip to content

Commit

Permalink
Update modules/core/04-channel/v2/keeper/packet.go
Browse files Browse the repository at this point in the history
Co-authored-by: DimitrisJim <[email protected]>
  • Loading branch information
Nikolas De Giorgis and DimitrisJim authored Oct 21, 2024
1 parent 412219d commit f9650b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/04-channel/v2/keeper/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (k *Keeper) timeoutPacket(
// that the packet was indeed sent by our counterparty.
channel, ok := k.GetChannel(ctx, packet.SourceChannel)
if !ok {
return errorsmod.Wrap(types.ErrChannelNotFound, packet.DestinationChannel)
return errorsmod.Wrap(types.ErrChannelNotFound, packet.SourceChannel)
}
if channel.CounterpartyChannelId != packet.DestinationChannel {
return errorsmod.Wrapf(channeltypes.ErrInvalidChannelIdentifier, "counterparty channel id (%s) does not match packet destination channel id (%s)", channel.CounterpartyChannelId, packet.DestinationChannel)
Expand Down

0 comments on commit f9650b8

Please sign in to comment.