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);