From d12fce2df0fe9b5b426a7224ad266d2c62393a4e Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 3 Dec 2024 23:09:07 -0800 Subject: [PATCH] Fix dynamic import. --- src/lib/rolodex.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/rolodex.ts b/src/lib/rolodex.ts index 0587dd6..4a15c77 100644 --- a/src/lib/rolodex.ts +++ b/src/lib/rolodex.ts @@ -94,9 +94,11 @@ export class Rolodex { * @returns {Promise} True if the signature was used to sign the data, else false */ async verify (name: string, signature: string, ...data: string[]): Promise { - const Tools = await import('./tools.js') + const { Tools } = await import('./tools.js') const entries = this.#entries.filter(e => e.name === name) for (const entry of entries) { + console.log(`entry.account.publicKey: ${entry.account.publicKey}`) + console.log(`signature: ${signature}`) const key = entry.account.publicKey const verified = await Tools.verify(key, signature, ...data) if (verified) { -- 2.34.1