fix: pass along cid.type, dont force CID_TYPES.RESOLVER
This commit is contained in:
parent
9820f7ac0f
commit
705590c7c5
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue