mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
e6c4d63ccd
Calls to `eth.sign` are now transiently persisted in memory, and displayed in a chronological stack with pending transactions (which are still persisted to disk). This allows the user a method to sign/cancel transactions even if they miss the Chrome notification. Improved a lot of the view routing, to avoid cases where routes would show an empty account view, or transition to the accounts list when it shouldn't. Broke the transaction approval view into a couple components so messages and transactions could have their own templates.
9 lines
267 B
JavaScript
9 lines
267 B
JavaScript
const valuesFor = require('../app/util').valuesFor
|
|
|
|
module.exports = function(unconfTxs, unconfMsgs) {
|
|
var txValues = valuesFor(unconfTxs)
|
|
var msgValues = valuesFor(unconfMsgs)
|
|
var allValues = txValues.concat(msgValues)
|
|
return allValues.sort(tx => tx.time)
|
|
}
|