diff options
Diffstat (limited to 'ui/lib/tx-helper.js')
-rw-r--r-- | ui/lib/tx-helper.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/lib/tx-helper.js b/ui/lib/tx-helper.js index fa7a94cdc..7f64f9fbe 100644 --- a/ui/lib/tx-helper.js +++ b/ui/lib/tx-helper.js @@ -1,8 +1,13 @@ const valuesFor = require('../app/util').valuesFor module.exports = function (unapprovedTxs, unapprovedMsgs, network) { + log.debug('tx-helper called with params:') + log.debug({ unapprovedTxs, unapprovedMsgs, network }) + var txValues = network ? valuesFor(unapprovedTxs).filter(tx => tx.txParams.metamaskNetworkId === network) : valuesFor(unapprovedTxs) + log.debug(`tx helper found ${txValues.length} unapproved txs`) var msgValues = valuesFor(unapprovedMsgs) + log.debug(`tx helper found ${msgValues.length} unsigned messages`) var allValues = txValues.concat(msgValues) return allValues.sort(tx => tx.time) } |