fix: change to flatMap usage
This commit is contained in:
parent
72610e7376
commit
1f1b5f4d38
1 changed files with 2 additions and 2 deletions
|
|
@ -75,8 +75,8 @@ function getInputAddresses(account, cryptoCode, txHashes) {
|
||||||
logger.warn('An address generated by this wallet was used in more than one transaction')
|
logger.warn('An address generated by this wallet was used in more than one transaction')
|
||||||
}
|
}
|
||||||
|
|
||||||
const transactionInputs = _.map(it => it.inputs, data.transactions)
|
const transactionInputs = _.flatMap(it => it.inputs, data.transactions)
|
||||||
const inputAddresses = _.map(it => it.address, _.flatten(transactionInputs))
|
const inputAddresses = _.map(it => it.address, transactionInputs)
|
||||||
|
|
||||||
return inputAddresses
|
return inputAddresses
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue