From: Chris Duncan Date: Sat, 26 Jul 2025 07:43:24 +0000 (-0700) Subject: Specify buffer type and use shorter type alias. X-Git-Tag: v0.10.5~50^2~15 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=2edd9cee60c5f7491d4b947a5d0ca63b23ada34a;p=libnemo.git Specify buffer type and use shorter type alias. --- diff --git a/src/lib/wallets/bip44-wallet.ts b/src/lib/wallets/bip44-wallet.ts index 0a3056d..3d49ed7 100644 --- a/src/lib/wallets/bip44-wallet.ts +++ b/src/lib/wallets/bip44-wallet.ts @@ -59,8 +59,8 @@ export class Bip44Wallet extends Wallet { * @param {string} [salt=''] - Used when generating the final seed * @returns {Bip44Wallet} A newly instantiated Bip44Wallet */ - static async create (key: Uint8Array, salt?: string): Promise - static async create (passkey: string | Uint8Array, salt: string = ''): Promise { + static async create (key: Uint8Array, salt?: string): Promise + static async create (passkey: Key, salt: string = ''): Promise { try { const e = await Entropy.create() return await Bip44Wallet.fromEntropy(passkey as string, e.hex, salt)