From 89c77c01905023ab484c5888832ea0cb4d52531a Mon Sep 17 00:00:00 2001 From: Damian Nolan Date: Wed, 17 May 2023 12:07:14 +0200 Subject: [PATCH] fix(statemachine)!: 04-channel SendPacket now correctly returns `ErrClientNotFound` in favour of `ErrConsensusStateNotFound` (#3593) (cherry picked from commit 1f323ce126c1362809c69a616a5c0390ed5f726d) --- 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 e57ec06e943..1db46f660e4 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