Skip to content

Commit

Permalink
chore: fix error formatting of client status check in client recovery (
Browse files Browse the repository at this point in the history
…#5039)

(cherry picked from commit 5341f03)
  • Loading branch information
damiannolan authored and mergify[bot] committed Nov 8, 2023
1 parent c99c438 commit f33096b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/02-client/keeper/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f33096b

Please sign in to comment.