From 705590c7c57b18155752acac4bd8cba79bada742 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 4 Sep 2023 03:30:19 -0400 Subject: [PATCH] fix: pass along cid.type, dont force CID_TYPES.RESOLVER --- src/cid.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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];