aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-05-23 06:21:25 +0800
committerDan Finlay <dan@danfinlay.com>2017-05-23 06:21:25 +0800
commit709c0eb307e2cda9aa16b67191a43e99e1b22fa0 (patch)
tree3b830b4c5bcf244e8efd7ca9a79c6a456c95eaa3
parentc5432da567b9953c1294e0bf598a0310127bf808 (diff)
downloadtangerine-wallet-browser-709c0eb307e2cda9aa16b67191a43e99e1b22fa0.tar
tangerine-wallet-browser-709c0eb307e2cda9aa16b67191a43e99e1b22fa0.tar.gz
tangerine-wallet-browser-709c0eb307e2cda9aa16b67191a43e99e1b22fa0.tar.bz2
tangerine-wallet-browser-709c0eb307e2cda9aa16b67191a43e99e1b22fa0.tar.lz
tangerine-wallet-browser-709c0eb307e2cda9aa16b67191a43e99e1b22fa0.tar.xz
tangerine-wallet-browser-709c0eb307e2cda9aa16b67191a43e99e1b22fa0.tar.zst
tangerine-wallet-browser-709c0eb307e2cda9aa16b67191a43e99e1b22fa0.zip
Use stream-provider v3 api
-rw-r--r--app/scripts/popup-core.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/popup-core.js b/app/scripts/popup-core.js
index f1eb394d7..7de1a6fda 100644
--- a/app/scripts/popup-core.js
+++ b/app/scripts/popup-core.js
@@ -29,9 +29,9 @@ function connectToAccountManager (connectionStream, cb) {
function setupWeb3Connection (connectionStream) {
var providerStream = new StreamProvider()
- providerStream.pipe(connectionStream).pipe(providerStream)
+ providerStream.stream.pipe(connectionStream).pipe(providerStream.stream)
connectionStream.on('error', console.error.bind(console))
- providerStream.on('error', console.error.bind(console))
+ providerStream.stream.on('error', console.error.bind(console))
global.ethereumProvider = providerStream
global.ethQuery = new EthQuery(providerStream)
}