Skip to content

Commit

Permalink
Change error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Hungry Warrior committed Jul 11, 2024
1 parent 77e0179 commit 67181ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/compliance/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (k msgServer) HandleSetVerificationStatus(goCtx context.Context, msg *types
}

if exists, err := k.IssuerExists(ctx, issuer); !exists || err != nil {
return nil, errors.Wrap(types.ErrInvalidIssuer, "issuer not exists")
return nil, errors.Wrap(types.ErrInvalidIssuer, "issuer does not exist")
}

if err = k.SetAddressVerificationStatus(ctx, issuer, msg.IsVerified); err != nil {
Expand Down Expand Up @@ -209,7 +209,7 @@ func (k msgServer) HandleUpdateIssuerDetails(goCtx context.Context, msg *types.M
}

if exists, err := k.IssuerExists(ctx, issuer); !exists || err != nil {
return nil, errors.Wrap(types.ErrInvalidIssuer, "issuer not exists")
return nil, errors.Wrap(types.ErrInvalidIssuer, "issuer does not exist")
}

// Revoke verification if address was verified
Expand Down Expand Up @@ -257,7 +257,7 @@ func (k msgServer) HandleRemoveIssuer(goCtx context.Context, msg *types.MsgRemov
}

if exists, err := k.IssuerExists(ctx, issuer); !exists || err != nil {
return nil, errors.Wrap(types.ErrInvalidIssuer, "issuer not exists")
return nil, errors.Wrap(types.ErrInvalidIssuer, "issuer does not exist")
}

k.RemoveIssuer(ctx, issuer)
Expand Down

0 comments on commit 67181ec

Please sign in to comment.