Use stream-provider v3 api

feature/default_network_editable
Dan Finlay 8 years ago
parent c5432da567
commit 709c0eb307
  1. 4
      app/scripts/popup-core.js

@ -29,9 +29,9 @@ function connectToAccountManager (connectionStream, cb) {
function setupWeb3Connection (connectionStream) { function setupWeb3Connection (connectionStream) {
var providerStream = new StreamProvider() var providerStream = new StreamProvider()
providerStream.pipe(connectionStream).pipe(providerStream) providerStream.stream.pipe(connectionStream).pipe(providerStream.stream)
connectionStream.on('error', console.error.bind(console)) 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.ethereumProvider = providerStream
global.ethQuery = new EthQuery(providerStream) global.ethQuery = new EthQuery(providerStream)
} }

Loading…
Cancel
Save