From f7bb2082338eacd2649bbf5560cd2773d870fd41 Mon Sep 17 00:00:00 2001 From: Damian Nolan Date: Tue, 7 Nov 2023 22:42:57 +0100 Subject: [PATCH] chore: fix error formatting of client status check in client recovery --- modules/core/02-client/keeper/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/02-client/keeper/client.go b/modules/core/02-client/keeper/client.go index d17d41679b8..db24eee27b6 100644 --- a/modules/core/02-client/keeper/client.go +++ b/modules/core/02-client/keeper/client.go @@ -181,7 +181,7 @@ func (k Keeper) RecoverClient(ctx sdk.Context, subjectClientID, substituteClient substituteClientStore := k.ClientStore(ctx, substituteClientID) if status := k.GetClientStatus(ctx, substituteClientState, substituteClientID); status != exported.Active { - return errorsmod.Wrapf(types.ErrClientNotActive, "substitute client is not %s, status is %s", status, exported.Active) + return errorsmod.Wrapf(types.ErrClientNotActive, "substitute client is not %s, status is %s", exported.Active, status) } if err := subjectClientState.CheckSubstituteAndUpdateState(ctx, k.cdc, subjectClientStore, substituteClientStore, substituteClientState); err != nil {