From 343b091390b67c82329372abd0354ae2a04ff7e1 Mon Sep 17 00:00:00 2001 From: weboko Date: Thu, 13 Apr 2023 23:29:39 +0200 Subject: [PATCH] fix import --- src/message.ts | 2 +- src/rln.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message.ts b/src/message.ts index f7df6f4..17b951e 100644 --- a/src/message.ts +++ b/src/message.ts @@ -3,7 +3,7 @@ import type { IMessage, IRateLimitProof, } from "@waku/interfaces"; -import utils from "@waku/utils/bytes"; +import * as utils from "@waku/utils/bytes"; import { epochBytesToInt } from "./epoch.js"; import { RLNInstance } from "./rln.js"; diff --git a/src/rln.ts b/src/rln.ts index dd897f4..203ff91 100644 --- a/src/rln.ts +++ b/src/rln.ts @@ -227,7 +227,7 @@ export class RLNInstance { } verifyWithRoots( - proof: RateLimitProof | Uint8Array, + proof: IRateLimitProof | Uint8Array, msg: Uint8Array ): boolean { let pBytes: Uint8Array;