From 9e8f389b9da9bdd223c5fec6676959f4d3f7b666 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 20 Aug 2025 11:50:30 -0700 Subject: [PATCH] Allow undefined input for account rep. --- src/lib/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/account.ts b/src/lib/account.ts index cfb7d08..f624d0b 100644 --- a/src/lib/account.ts +++ b/src/lib/account.ts @@ -81,7 +81,7 @@ export class Account { set open_block (v: string | undefined) { this.#open_block = v } set receivable (v: bigint | number | string) { this.#receivable = BigInt(v) } set representative (v: unknown) { - if (v instanceof Account) { + if (v instanceof Account || v === undefined) { this.#representative = v } else if (typeof v === 'string') { this.#representative = Account.load(v) -- 2.47.3