diff --git a/src/registrar.ts b/src/registrar.ts index 80af2ce..3b06fcc 100644 --- a/src/registrar.ts +++ b/src/registrar.ts @@ -68,7 +68,7 @@ export class PolygonDID { const resolveDidDoc = await this.registry.getDIDDoc(parsedDid.didAddress) - if (!resolveDidDoc) { + if (resolveDidDoc) { throw new Error('The DID document already registered!') }