fix: pass along cid.type, dont force CID_TYPES.RESOLVER

This commit is contained in:
Derrick Hammer 2023-09-04 03:30:19 -04:00
parent 9820f7ac0f
commit 705590c7c5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 7 deletions

View File

@ -110,13 +110,7 @@ export function encodeRegistryValue(
}
}
const [ret, err] = encodeCid(
cid.hash,
cid.size,
CID_TYPES.RESOLVER,
hashType,
true,
);
const [ret, err] = encodeCid(cid.hash, cid.size, cid.type, hashType, true);
if (err) {
return [new Uint8Array(), err];