From f4af5dd3d845f641030b15ae4077648b967b0954 Mon Sep 17 00:00:00 2001 From: Roy Scheeren Date: Fri, 22 Nov 2024 19:08:26 +0100 Subject: [PATCH] refactor(envited.ascs.digital): debug Signed-off-by: Roy Scheeren --- .../common/asset/validateAndCreateMetadata.utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.utils.ts b/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.utils.ts index 9de0cdd1..aac9b676 100644 --- a/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.utils.ts +++ b/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.utils.ts @@ -27,7 +27,7 @@ export const _createFilename = ({ raw, sha256, CID }: { raw: any; sha256: Hasher<'sha2-256', 18>; CID: any }) => async (byteArray: any) => { try { - console.log(typeof byteArray, instanceof byteArray) + console.log(typeof byteArray, byteArray instanceof Uint8Array) const rawBytes = raw.encode(byteArray) const hash = await sha256.digest(rawBytes) const cid = CID.create(1, raw.code, hash)