mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
deps - use stream-subprovider from provider-engine
This commit is contained in:
parent
cbfaa6f56f
commit
1c1400b584
@ -1,7 +1,7 @@
|
||||
const pipe = require('pump')
|
||||
const ProviderEngine = require('web3-provider-engine')
|
||||
const FilterSubprovider = require('web3-provider-engine/subproviders/filters')
|
||||
const StreamSubprovider = require('web3-stream-provider/stream-subprovider')
|
||||
const StreamSubprovider = require('web3-provider-engine/subproviders/stream')
|
||||
const LocalStorageStore = require('obs-store')
|
||||
const ObjectMultiplex = require('./obj-multiplex')
|
||||
const createRandomId = require('./random-id')
|
||||
|
@ -29,9 +29,9 @@ function connectToAccountManager (connectionStream, cb) {
|
||||
|
||||
function setupWeb3Connection (connectionStream) {
|
||||
var providerStream = new StreamProvider()
|
||||
providerStream.stream.pipe(connectionStream).pipe(providerStream.stream)
|
||||
providerStream.pipe(connectionStream).pipe(providerStream)
|
||||
connectionStream.on('error', console.error.bind(console))
|
||||
providerStream.stream.on('error', console.error.bind(console))
|
||||
providerStream.on('error', console.error.bind(console))
|
||||
global.ethereumProvider = providerStream
|
||||
global.ethQuery = new EthQuery(providerStream)
|
||||
}
|
||||
|
@ -121,8 +121,8 @@
|
||||
"valid-url": "^1.0.9",
|
||||
"vreme": "^3.0.2",
|
||||
"web3": "0.18.2",
|
||||
"web3-provider-engine": "^12.0.6",
|
||||
"web3-stream-provider": "^3.0.0",
|
||||
"web3-provider-engine": "^12.1.0",
|
||||
"web3-stream-provider": "^2.0.6",
|
||||
"xtend": "^4.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
Loading…
Reference in New Issue
Block a user