aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-11 16:46:44 +0800
committerkumavis <aaron@kumavis.me>2017-01-11 16:46:44 +0800
commit61637c738bf0e1625b1b6f69ef3747c60d564304 (patch)
treeb5050e72a1edfd7bb421dec57c934f0d59eb14bf
parent766c2f5127b055d208a5fe1ede75c588fbc73935 (diff)
downloadtangerine-wallet-browser-61637c738bf0e1625b1b6f69ef3747c60d564304.tar
tangerine-wallet-browser-61637c738bf0e1625b1b6f69ef3747c60d564304.tar.gz
tangerine-wallet-browser-61637c738bf0e1625b1b6f69ef3747c60d564304.tar.bz2
tangerine-wallet-browser-61637c738bf0e1625b1b6f69ef3747c60d564304.tar.lz
tangerine-wallet-browser-61637c738bf0e1625b1b6f69ef3747c60d564304.tar.xz
tangerine-wallet-browser-61637c738bf0e1625b1b6f69ef3747c60d564304.tar.zst
tangerine-wallet-browser-61637c738bf0e1625b1b6f69ef3747c60d564304.zip
web3 provider - override eth_syncing and web3_clientVersion
-rw-r--r--app/scripts/metamask-controller.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 555460f3d..d79fd3cd3 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -13,6 +13,7 @@ const extension = require('./lib/extension')
const autoFaucet = require('./lib/auto-faucet')
const nodeify = require('./lib/nodeify')
const IdStoreMigrator = require('./lib/idStore-migrator')
+const version = require('../manifest.json').version
module.exports = class MetamaskController extends EventEmitter {
@@ -175,6 +176,10 @@ module.exports = class MetamaskController extends EventEmitter {
const keyringController = this.keyringController
var providerOpts = {
+ static: {
+ eth_syncing: false,
+ web3_clientVersion: `MetaMask/v${version}`,
+ },
rpcUrl: this.configManager.getCurrentRpcAddress(),
// account mgmt
getAccounts: (cb) => {