From 003d42ac09e2833f23f8b0e6d1268424cbfd2f9d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 18 Nov 2023 09:21:01 -0500 Subject: [PATCH] fix: need to pass CID object --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 594aafe..d2bb991 100644 --- a/src/index.ts +++ b/src/index.ts @@ -205,7 +205,7 @@ async function handleStat(aq: ActiveQuery) { } try { - const ret = await node.getMetadataByCID(aq.callerInput.cid); + const ret = await node.getMetadataByCID(CID.decode(aq.callerInput.cid)); aq.respond(ret.toJson()); } catch (e) { aq.reject(e);