refactor: remove CID_HASH_TYPES check

This commit is contained in:
Derrick Hammer 2023-09-19 21:09:41 -04:00
parent c3b3336621
commit ec800e6f08
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 5 deletions

View File

@ -113,11 +113,7 @@ async function handleGetRegistryEntry(aq: ActiveQuery) {
let { pubkey } = aq.callerInput; let { pubkey } = aq.callerInput;
pubkey = ensureBytes("registry entry ", pubkey, 32); pubkey = ensureBytes("registry entry", pubkey, 33);
if (pubkey[0] !== CID_HASH_TYPES.ED25519) {
pubkey = concatBytes(Uint8Array.from([CID_HASH_TYPES.ED25519]), pubkey);
}
const ret = await node.services.registry.get(pubkey); const ret = await node.services.registry.get(pubkey);