return wallet\r
}\r
\r
- /**\r
- * Gets the public key for an account from the Ledger device.\r
- *\r
- * @param {number[]} indexes - Indexes of the accounts\r
- * @returns {Promise<Account>}\r
- */\r
- async ckd (indexes: number[]): Promise<KeyPair[]> {\r
- const results: KeyPair[] = []\r
- for (const index of indexes) {\r
- const { status, publicKey } = await this.#account(index)\r
- if (status === 'OK' && publicKey != null) {\r
- results.push({ publicKey, index })\r
- } else {\r
- throw new Error(`Error getting Ledger account: ${status}`)\r
- }\r
- }\r
- return results\r
- }\r
-\r
/**\r
* Attempts to close the current process on the Ledger device.\r
*\r
return { status: 'ERROR_PARSING_ACCOUNT', publicKey: null, address: null }\r
}\r
}\r
+\r
+ /**\r
+ * Gets the public key for an account from the Ledger device.\r
+ *\r
+ * @param {number[]} indexes - Indexes of the accounts\r
+ * @returns {Promise<Account>}\r
+ */\r
+ async ckd (indexes: number[]): Promise<KeyPair[]> {\r
+ const results: KeyPair[] = []\r
+ for (const index of indexes) {\r
+ const { status, publicKey } = await this.#account(index)\r
+ if (status === 'OK' && publicKey != null) {\r
+ results.push({ publicKey, index })\r
+ } else {\r
+ throw new Error(`Error getting Ledger account: ${status}`)\r
+ }\r
+ }\r
+ return results\r
+ }\r
}\r