diff --git a/src/rln.ts b/src/rln.ts index f30833c..e9fa169 100644 --- a/src/rln.ts +++ b/src/rln.ts @@ -1,5 +1,6 @@ import type { IRateLimitProof } from "@waku/interfaces"; -import init, * as zerokitRLN from "@waku/zerokit-rln-wasm"; +import { default as init } from "@waku/zerokit-rln-wasm"; +import * as zerokitRLN from "@waku/zerokit-rln-wasm"; import { writeUIntLE } from "./byte_utils.js"; import { dateToEpoch, epochIntToBytes } from "./epoch.js"; diff --git a/tsconfig.json b/tsconfig.json index 905d2fc..3bd2c83 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "target": "es2020", "outDir": "dist/", "rootDir": "src", - "moduleResolution": "node", + "moduleResolution": "node16", "module": "es2020", "declaration": true, "allowJs": true,