From a3cc5c1c71c6665d1b0af165b0e4395058a60ff0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 11 Sep 2023 13:33:57 -0400 Subject: [PATCH] fix: resolverCid needs to be in string format --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();