meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
4 additions and
4 deletions
-
src/internals/accounts/scanAccountsOnDevice.js
|
|
@ -218,10 +218,10 @@ async function buildAccountRaw({ |
|
|
|
|
|
|
|
// get a bunch of fresh addresses
|
|
|
|
const rawAddresses = await njsAccount.getFreshPublicAddresses() |
|
|
|
// TODO: waiting for libcore
|
|
|
|
const addresses = rawAddresses.map((strAddr, i) => ({ |
|
|
|
str: strAddr, |
|
|
|
path: `${accountPath}/${i}'`, |
|
|
|
|
|
|
|
const addresses = rawAddresses.map(njsAddress => ({ |
|
|
|
str: njsAddress.toString(), |
|
|
|
path: `${accountPath}/${njsAddress.getDerivationPath()}`, |
|
|
|
})) |
|
|
|
|
|
|
|
const operations = ops.map(op => buildOperationRaw({ core, op, xpub })) |
|
|
|