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
  • Loading branch information
damiannolan committed Nov 7, 2023
1 parent ceefeed commit f7bb208
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 f7bb208

Please sign in to comment.