diff options
Add UI for Signing Messages
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.
Diffstat (limited to 'ui/lib/tx-helper.js')
-rw-r--r-- | ui/lib/tx-helper.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/lib/tx-helper.js b/ui/lib/tx-helper.js new file mode 100644 index 000000000..49845b01a --- /dev/null +++ b/ui/lib/tx-helper.js @@ -0,0 +1,8 @@ +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) +} |