aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/metamask-controller.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-10-11 05:13:12 +0800
committerkumavis <aaron@kumavis.me>2017-10-11 05:13:12 +0800
commitefa92a7fc5925533f72e876c9bf84df0a6258d4a (patch)
tree7b3653c635c36826d2b2d3180050090d0930c41b /app/scripts/metamask-controller.js
parentff4e9a0d1122db83221bc956f11c9520bf0e008c (diff)
downloadtangerine-wallet-browser-efa92a7fc5925533f72e876c9bf84df0a6258d4a.tar
tangerine-wallet-browser-efa92a7fc5925533f72e876c9bf84df0a6258d4a.tar.gz
tangerine-wallet-browser-efa92a7fc5925533f72e876c9bf84df0a6258d4a.tar.bz2
tangerine-wallet-browser-efa92a7fc5925533f72e876c9bf84df0a6258d4a.tar.lz
tangerine-wallet-browser-efa92a7fc5925533f72e876c9bf84df0a6258d4a.tar.xz
tangerine-wallet-browser-efa92a7fc5925533f72e876c9bf84df0a6258d4a.tar.zst
tangerine-wallet-browser-efa92a7fc5925533f72e876c9bf84df0a6258d4a.zip
network controller - refactor to use eth-rpc-client
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r--app/scripts/metamask-controller.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 1292d2a1e..67bbdc15a 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -82,8 +82,8 @@ module.exports = class MetamaskController extends EventEmitter {
this.blacklistController.scheduleUpdates()
// rpc provider and block tracker
- this.provider = this.networkController.initializeProvider({
- static: {
+ this.networkController.initializeProvider({
+ scaffold: {
eth_syncing: false,
web3_clientVersion: `MetaMask/v${version}`,
},
@@ -97,7 +97,8 @@ module.exports = class MetamaskController extends EventEmitter {
processPersonalMessage: this.newUnsignedPersonalMessage.bind(this),
processTypedMessage: this.newUnsignedTypedMessage.bind(this),
})
- this.blockTracker = this.provider._blockTracker
+ this.provider = this.networkController.providerProxy
+ this.blockTracker = this.networkController.blockTrackerProxy
// eth data query tools
this.ethQuery = new EthQuery(this.provider)