From e719a6341a0a57617372489bcbb36e84cbc6ff18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Enge?= Date: Sun, 1 Dec 2024 08:35:44 +0100 Subject: [PATCH] Fixed import issue in built module for js-sha3 --- packages/onchfs-js/src/utils/keccak.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/onchfs-js/src/utils/keccak.ts b/packages/onchfs-js/src/utils/keccak.ts index 1547f66..c9dcc2b 100644 --- a/packages/onchfs-js/src/utils/keccak.ts +++ b/packages/onchfs-js/src/utils/keccak.ts @@ -1,9 +1,9 @@ -import { keccak256 } from "js-sha3" +import sha3 from "js-sha3" /** * Hashes some bytes with keccak256. Simple typed wrapper to ease implementation * @param bytes Bytes to hash */ export function keccak(bytes: Uint8Array | string): Uint8Array { - return new Uint8Array(keccak256.digest(bytes)) + return new Uint8Array(sha3.keccak256.digest(bytes)) }