mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 18:41:38 +01:00
8be68575bb
Provider egine bump Remove presence of message manger in keyring controller Change the status wording fom conf to approved make Message manager a class fix messages not being apart of the badge re write message manger to better reflect controller pattern
9 lines
386 B
JavaScript
9 lines
386 B
JavaScript
const valuesFor = require('../app/util').valuesFor
|
|
|
|
module.exports = function (unapprovedTxs, unapprovedMsgs, network) {
|
|
var txValues = network ? valuesFor(unapprovedTxs).filter(tx => tx.txParams.metamaskNetworkId === network) : valuesFor(unapprovedTxs)
|
|
var msgValues = valuesFor(unapprovedMsgs)
|
|
var allValues = txValues.concat(msgValues)
|
|
return allValues.sort(tx => tx.time)
|
|
}
|