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 f4af5dd commit 16773f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export const _validateAndCreateMetadata =
try {
const { conforms, reports, data } = await getShaclSchemaAndValidate(byteArray)
const assetCID = await createFilename(byteArray)
console.log(data.domainMetadata, typeof data.domainMetadata)
const domainMetadataCID = await createFilename(data.domainMetadata)

const connection = await db()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const _createFilename =
({ raw, sha256, CID }: { raw: any; sha256: Hasher<'sha2-256', 18>; CID: any }) =>
async (byteArray: any) => {
try {
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 16773f1

Please sign in to comment.