diff --git a/x/cheqd/keeper/keeper_did.go b/x/cheqd/keeper/keeper_did.go index 308166ad4..53e5169db 100644 --- a/x/cheqd/keeper/keeper_did.go +++ b/x/cheqd/keeper/keeper_did.go @@ -41,7 +41,7 @@ func (k Keeper) SetDidCount(ctx *sdk.Context, count uint64) { func (k Keeper) AppendDid(ctx *sdk.Context, did *types.Did, metadata *types.Metadata) error { // Check that did doesn't exist if k.HasDid(ctx, did.Id) { - return types.ErrDidDocNotFound.Wrapf(did.Id) + return types.ErrDidDocExists.Wrapf(did.Id) } // Create the did