*Pass CID as string, not object

This commit is contained in:
Derrick Hammer 2023-03-30 19:01:50 -04:00
parent 053e988ea8
commit 9edc8269fa
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -257,7 +257,9 @@ async function handleIpnsResolve(aq: ActiveQuery) {
try { try {
return aq.respond( return aq.respond(
(await IPNS.resolve(peerIdFromCID(cid), aq.callerInput?.options)).asCID (
await IPNS.resolve(peerIdFromCID(cid), aq.callerInput?.options)
).asCID.toString()
); );
} catch (e: any) { } catch (e: any) {
aq.reject((e as Error).message); aq.reject((e as Error).message);