if (indexes.length > 0) {\r
const keypairs = await this.ckd(indexes)\r
for (const keypair of keypairs) {\r
- const { privateKey, publicKey, index } = keypair\r
- if (index == null) throw new RangeError('Account keys derived but index missing')\r
+ const { index, privateKey, publicKey } = keypair\r
+ if (index == null) {\r
+ throw new RangeError('Account keys derived but index missing')\r
+ }\r
if (privateKey != null) {\r
output[index] = await Account.import(privateKey, this.seed)\r
} else if (publicKey != null) {\r