fix: use hashType not type

This commit is contained in:
Derrick Hammer 2023-09-04 03:51:39 -04:00
parent d096b7d62f
commit 108ab86fcc
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export function encodeCid(
if (typeof hash !== "string" && !(hash instanceof Uint8Array)) {
size = hash.size;
type = type ?? hash.type;
hashType = hashType ?? hash.type;
hashType = hashType ?? hash.hashType;
hash = hash.hash;
}
try {