From: Chris Duncan Date: Wed, 4 Dec 2024 07:09:07 +0000 (-0800) Subject: Fix dynamic import. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=d12fce2df0fe9b5b426a7224ad266d2c62393a4e;p=libnemo.git Fix dynamic import. --- 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) {