Skip to content

Commit

Permalink
refactor(envited.ascs.digital): debug
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Scheeren <[email protected]>
  • Loading branch information
royscheeren committed Nov 22, 2024
1 parent 2dbe99e commit f4af5dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f4af5dd

Please sign in to comment.