From 3cac10222873ed8518dd42c495f2326cb9799b79 Mon Sep 17 00:00:00 2001 From: Damian Nolan Date: Tue, 16 May 2023 16:18:38 +0200 Subject: [PATCH] updating error return in 04-channel SendPacket to be more reflective of actual behaviour --- modules/core/04-channel/keeper/packet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/04-channel/keeper/packet.go b/modules/core/04-channel/keeper/packet.go index 238e92dcd93..1ec5e94521c 100644 --- a/modules/core/04-channel/keeper/packet.go +++ b/modules/core/04-channel/keeper/packet.go @@ -67,7 +67,7 @@ func (k Keeper) SendPacket( clientState, found := k.clientKeeper.GetClientState(ctx, connectionEnd.GetClientID()) if !found { - return 0, clienttypes.ErrConsensusStateNotFound + return 0, clienttypes.ErrClientNotFound } // prevent accidental sends with clients that cannot be updated