From 7bbc3f6a9b9876f5fa62bf02bf35e4ab7b2f5543 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 30 Nov 2024 00:13:55 -0800 Subject: [PATCH] Public key is validated as part of fromPublicKey call, so remove it from fromKeypair. --- src/lib/account.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/account.ts b/src/lib/account.ts index 3320e6b..f083e7f 100644 --- a/src/lib/account.ts +++ b/src/lib/account.ts @@ -130,7 +130,6 @@ export class Account { */ static fromKeypair (publicKey: string, privateKey: string, index?: number): Account { Account.#isInternal = true - Account.#validateKey(publicKey) Account.#validateKey(privateKey) const account = Account.fromPublicKey(publicKey, index) account.#prv = privateKey.toUpperCase() -- 2.34.1