aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-05-09 03:29:08 +0800
committerkumavis <aaron@kumavis.me>2017-05-09 03:29:08 +0800
commit68be86abe959afd26ea50e0833c552c442bfce51 (patch)
tree23eb3f52e9ce9ce053dd40ad10d71ce5c7842460 /app
parent1c44dd3353c51b6135c06188e8cd57690e0d30fc (diff)
downloadtangerine-wallet-browser-68be86abe959afd26ea50e0833c552c442bfce51.tar
tangerine-wallet-browser-68be86abe959afd26ea50e0833c552c442bfce51.tar.gz
tangerine-wallet-browser-68be86abe959afd26ea50e0833c552c442bfce51.tar.bz2
tangerine-wallet-browser-68be86abe959afd26ea50e0833c552c442bfce51.tar.lz
tangerine-wallet-browser-68be86abe959afd26ea50e0833c552c442bfce51.tar.xz
tangerine-wallet-browser-68be86abe959afd26ea50e0833c552c442bfce51.tar.zst
tangerine-wallet-browser-68be86abe959afd26ea50e0833c552c442bfce51.zip
ui - remove web3, use eth-query
Diffstat (limited to 'app')
-rw-r--r--app/scripts/popup-core.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/popup-core.js b/app/scripts/popup-core.js
index f9ac4d052..f1eb394d7 100644
--- a/app/scripts/popup-core.js
+++ b/app/scripts/popup-core.js
@@ -1,7 +1,7 @@
const EventEmitter = require('events').EventEmitter
const async = require('async')
const Dnode = require('dnode')
-const Web3 = require('web3')
+const EthQuery = require('eth-query')
const launchMetamaskUi = require('../../ui')
const StreamProvider = require('web3-stream-provider')
const setupMultiplex = require('./lib/stream-utils.js').setupMultiplex
@@ -32,7 +32,8 @@ function setupWeb3Connection (connectionStream) {
providerStream.pipe(connectionStream).pipe(providerStream)
connectionStream.on('error', console.error.bind(console))
providerStream.on('error', console.error.bind(console))
- global.web3 = new Web3(providerStream)
+ global.ethereumProvider = providerStream
+ global.ethQuery = new EthQuery(providerStream)
}
function setupControllerConnection (connectionStream, cb) {