aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-08-13 05:12:01 +0800
committerGitHub <noreply@github.com>2017-08-13 05:12:01 +0800
commit68c6b2d666719476bff78cbc107a56be3b86dbe1 (patch)
treeae2b84b5714030cdad7848c9ff89d7c494831ebe
parent3b1ac178ef5e085bfa40706c5e628204bcc0c17b (diff)
parent66a012550edb8b8bb328f2315109bbbab48d3d3f (diff)
downloadtangerine-wallet-browser-68c6b2d666719476bff78cbc107a56be3b86dbe1.tar
tangerine-wallet-browser-68c6b2d666719476bff78cbc107a56be3b86dbe1.tar.gz
tangerine-wallet-browser-68c6b2d666719476bff78cbc107a56be3b86dbe1.tar.bz2
tangerine-wallet-browser-68c6b2d666719476bff78cbc107a56be3b86dbe1.tar.lz
tangerine-wallet-browser-68c6b2d666719476bff78cbc107a56be3b86dbe1.tar.xz
tangerine-wallet-browser-68c6b2d666719476bff78cbc107a56be3b86dbe1.tar.zst
tangerine-wallet-browser-68c6b2d666719476bff78cbc107a56be3b86dbe1.zip
Merge pull request #1904 from MetaMask/web3-depreciation
Web3 depreciation warning
-rw-r--r--CHANGELOG.md2
-rw-r--r--app/scripts/lib/auto-reload.js5
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 58779e31e..516e8f9e8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
## Current Master
+- Added a deprecation warning for web3 https://github.com/ethereum/mist/releases/tag/v0.9.0
+
## 3.9.6 2017-8-09
- Replace account screen with an account drop-down menu.
diff --git a/app/scripts/lib/auto-reload.js b/app/scripts/lib/auto-reload.js
index 534047330..6abce73ea 100644
--- a/app/scripts/lib/auto-reload.js
+++ b/app/scripts/lib/auto-reload.js
@@ -5,7 +5,10 @@ function setupDappAutoReload (web3, observable) {
global.web3 = new Proxy(web3, {
get: (_web3, name) => {
// get the time of use
- if (name !== '_used') _web3._used = Date.now()
+ if (name !== '_used') {
+ console.warn('MetaMask: web3 will be deprecated in the near future in favor of the ethereumProvider \nhttps://github.com/ethereum/mist/releases/tag/v0.9.0')
+ _web3._used = Date.now()
+ }
return _web3[name]
},
set: (_web3, name, value) => {