diff --git a/src/index.ts b/src/index.ts index 86a52a4..d63ec29 100644 --- a/src/index.ts +++ b/src/index.ts @@ -199,7 +199,7 @@ await peerDefer.promise; let resolverCid; try { - resolverCid = CID.fromRegistryPublicKey(sre.pk); + resolverCid = CID.fromRegistryPublicKey(sre.pk).toString(); } catch (e) { console.error("Failed to publish: ", e.message); process.exit();