diff --git a/src/cid.ts b/src/cid.ts index 24603fc..574e1e6 100644 --- a/src/cid.ts +++ b/src/cid.ts @@ -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];