diff options
Require loglevel singleton in each module that uses it
Diffstat (limited to 'old-ui')
-rw-r--r-- | old-ui/app/app.js | 1 | ||||
-rw-r--r-- | old-ui/app/components/ens-input.js | 1 | ||||
-rw-r--r-- | old-ui/app/components/pending-tx.js | 1 | ||||
-rw-r--r-- | old-ui/app/components/token-list.js | 1 | ||||
-rw-r--r-- | old-ui/app/conf-tx.js | 1 | ||||
-rw-r--r-- | old-ui/lib/tx-helper.js | 1 |
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:') |