Browse Source

Fix getFreshAddresses

master
meriadec 7 years ago
parent
commit
d96c0bcdc9
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 8
      src/internals/accounts/scanAccountsOnDevice.js

8
src/internals/accounts/scanAccountsOnDevice.js

@ -218,10 +218,10 @@ async function buildAccountRaw({
// get a bunch of fresh addresses // get a bunch of fresh addresses
const rawAddresses = await njsAccount.getFreshPublicAddresses() const rawAddresses = await njsAccount.getFreshPublicAddresses()
// TODO: waiting for libcore
const addresses = rawAddresses.map((strAddr, i) => ({ const addresses = rawAddresses.map(njsAddress => ({
str: strAddr, str: njsAddress.toString(),
path: `${accountPath}/${i}'`, path: `${accountPath}/${njsAddress.getDerivationPath()}`,
})) }))
const operations = ops.map(op => buildOperationRaw({ core, op, xpub })) const operations = ops.map(op => buildOperationRaw({ core, op, xpub }))

Loading…
Cancel
Save