aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-04-13 05:06:59 +0800
committerbitpshr <mail@bitpshr.net>2018-04-14 05:56:28 +0800
commit7129d7c0f3ce11839f8b8a576eb1e2c093fb96cc (patch)
tree3dfc333163401e3727b3f8b3d64aa65df2a89909 /old-ui
parent3afe76bcba5eb1b84c748b13b61d1a22bed40bd3 (diff)
downloadtangerine-wallet-browser-7129d7c0f3ce11839f8b8a576eb1e2c093fb96cc.tar
tangerine-wallet-browser-7129d7c0f3ce11839f8b8a576eb1e2c093fb96cc.tar.gz
tangerine-wallet-browser-7129d7c0f3ce11839f8b8a576eb1e2c093fb96cc.tar.bz2
tangerine-wallet-browser-7129d7c0f3ce11839f8b8a576eb1e2c093fb96cc.tar.lz
tangerine-wallet-browser-7129d7c0f3ce11839f8b8a576eb1e2c093fb96cc.tar.xz
tangerine-wallet-browser-7129d7c0f3ce11839f8b8a576eb1e2c093fb96cc.tar.zst
tangerine-wallet-browser-7129d7c0f3ce11839f8b8a576eb1e2c093fb96cc.zip
Require loglevel singleton in each module that uses it
Diffstat (limited to 'old-ui')
-rw-r--r--old-ui/app/app.js1
-rw-r--r--old-ui/app/components/ens-input.js1
-rw-r--r--old-ui/app/components/pending-tx.js1
-rw-r--r--old-ui/app/components/token-list.js1
-rw-r--r--old-ui/app/conf-tx.js1
-rw-r--r--old-ui/lib/tx-helper.js1
6 files changed, 6 insertions, 0 deletions
diff --git a/old-ui/app/app.js b/old-ui/app/app.js
index 37611987f..fc0d634aa 100644
--- a/old-ui/app/app.js
+++ b/old-ui/app/app.js
@@ -3,6 +3,7 @@ const Component = require('react').Component
const connect = require('react-redux').connect
const h = require('react-hyperscript')
const actions = require('../../ui/app/actions')
+const log = require('loglevel')
// mascara
const MascaraFirstTime = require('../../mascara/src/app/first-time').default
const MascaraBuyEtherScreen = require('../../mascara/src/app/first-time/buy-ether-screen').default
diff --git a/old-ui/app/components/ens-input.js b/old-ui/app/components/ens-input.js
index c85a23514..d09c30644 100644
--- a/old-ui/app/components/ens-input.js
+++ b/old-ui/app/components/ens-input.js
@@ -8,6 +8,7 @@ const ENS = require('ethjs-ens')
const networkMap = require('ethjs-ens/lib/network-map.json')
const ensRE = /.+\..+$/
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
+const log = require('loglevel')
module.exports = EnsInput
diff --git a/old-ui/app/components/pending-tx.js b/old-ui/app/components/pending-tx.js
index 7f63d9fdf..cd4189fc4 100644
--- a/old-ui/app/components/pending-tx.js
+++ b/old-ui/app/components/pending-tx.js
@@ -3,6 +3,7 @@ const h = require('react-hyperscript')
const inherits = require('util').inherits
const actions = require('../../../ui/app/actions')
const clone = require('clone')
+const log = require('loglevel')
const ethUtil = require('ethereumjs-util')
const BN = ethUtil.BN
diff --git a/old-ui/app/components/token-list.js b/old-ui/app/components/token-list.js
index 149733b89..e20594b61 100644
--- a/old-ui/app/components/token-list.js
+++ b/old-ui/app/components/token-list.js
@@ -3,6 +3,7 @@ const h = require('react-hyperscript')
const inherits = require('util').inherits
const TokenTracker = require('eth-token-tracker')
const TokenCell = require('./token-cell.js')
+const log = require('loglevel')
module.exports = TokenList
diff --git a/old-ui/app/conf-tx.js b/old-ui/app/conf-tx.js
index 1bb8eb97c..67eb31c37 100644
--- a/old-ui/app/conf-tx.js
+++ b/old-ui/app/conf-tx.js
@@ -7,6 +7,7 @@ const NetworkIndicator = require('./components/network')
const LoadingIndicator = require('./components/loading')
const txHelper = require('../lib/tx-helper')
const isPopupOrNotification = require('../../app/scripts/lib/is-popup-or-notification')
+const log = require('loglevel')
const PendingTx = require('./components/pending-tx')
const PendingMsg = require('./components/pending-msg')
diff --git a/old-ui/lib/tx-helper.js b/old-ui/lib/tx-helper.js
index de3f00d2d..0a6f55a63 100644
--- a/old-ui/lib/tx-helper.js
+++ b/old-ui/lib/tx-helper.js
@@ -1,4 +1,5 @@
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:')