aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui/lib/tx-helper.js
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-02-15 05:03:21 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-02-21 01:48:46 +0800
commit3c73781787f7aab6cdba0b738e4844a26aab5d8e (patch)
tree5a98f0acdcda6d3dd1a8368be6bb0ddf77c8fa6a /old-ui/lib/tx-helper.js
parent41f89ac7edf994f3d15d32d3d82d8d2b03dec481 (diff)
downloadtangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.tar.gz
tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.tar.zst
tangerine-wallet-browser-3c73781787f7aab6cdba0b738e4844a26aab5d8e.zip
Delete old-ui folder
Diffstat (limited to 'old-ui/lib/tx-helper.js')
-rw-r--r--old-ui/lib/tx-helper.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/old-ui/lib/tx-helper.js b/old-ui/lib/tx-helper.js
deleted file mode 100644
index 0a6f55a63..000000000
--- a/old-ui/lib/tx-helper.js
+++ /dev/null
@@ -1,28 +0,0 @@
-const valuesFor = require('../app/util').valuesFor
-const log = require('loglevel')
-
-module.exports = function (unapprovedTxs, unapprovedMsgs, personalMsgs, typedMessages, network) {
- log.debug('tx-helper called with params:')
- log.debug({ unapprovedTxs, unapprovedMsgs, personalMsgs, typedMessages, network })
-
- const txValues = network ? valuesFor(unapprovedTxs).filter(txMeta => txMeta.metamaskNetworkId === network) : valuesFor(unapprovedTxs)
- log.debug(`tx helper found ${txValues.length} unapproved txs`)
-
- const msgValues = valuesFor(unapprovedMsgs)
- log.debug(`tx helper found ${msgValues.length} unsigned messages`)
- let allValues = txValues.concat(msgValues)
-
- const personalValues = valuesFor(personalMsgs)
- log.debug(`tx helper found ${personalValues.length} unsigned personal messages`)
- allValues = allValues.concat(personalValues)
-
- const typedValues = valuesFor(typedMessages)
- log.debug(`tx helper found ${typedValues.length} unsigned typed messages`)
- allValues = allValues.concat(typedValues)
-
- allValues = allValues.sort((a, b) => {
- return a.time > b.time
- })
-
- return allValues
-}