From 0b44a12f087bb772ddbfa801a32e16587f2574ff Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 8 Aug 2025 23:24:02 -0700 Subject: [PATCH] Reset account internal flag. --- src/lib/account.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/account.ts b/src/lib/account.ts index a0c719d..b01d265 100644 --- a/src/lib/account.ts +++ b/src/lib/account.ts @@ -53,8 +53,9 @@ export class Account { private constructor (address: string, publicKey: Key, index?: number) { if (!Account.#isInternal) { - throw new Error(`Account cannot be instantiated directly. Use factory methods instead.`) + throw new Error('Account cannot be instantiated directly. Use `import()` instead.') } + Account.#isInternal = false this.#address = address .replace(PREFIX, '') .replace(PREFIX_LEGACY, '') -- 2.47.3