add source for header in create infura client (#6023)

* add source for header in create infura client

* bump eth-json-rpc-infura
feature/default_network_editable
Jenny Pollack 6 years ago committed by Frankie
parent 2d7c9b3dac
commit 456bfaf9ed
  1. 2
      app/scripts/controllers/network/createInfuraClient.js
  2. 961
      package-lock.json

@ -12,7 +12,7 @@ const BlockTracker = require('eth-block-tracker')
module.exports = createInfuraClient module.exports = createInfuraClient
function createInfuraClient ({ network }) { function createInfuraClient ({ network }) {
const infuraMiddleware = createInfuraMiddleware({ network }) const infuraMiddleware = createInfuraMiddleware({ network, maxAttempts: 5, source: 'metamask' })
const infuraProvider = providerFromMiddleware(infuraMiddleware) const infuraProvider = providerFromMiddleware(infuraMiddleware)
const blockTracker = new BlockTracker({ provider: infuraProvider }) const blockTracker = new BlockTracker({ provider: infuraProvider })

961
package-lock.json generated

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save