aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-08-12 06:52:03 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-08-12 06:52:03 +0800
commitac9e84ff40c0331cda6233be31241d68f05565f3 (patch)
treeaf0fa7ced1a1cf117310c96281a8ae8adb67cbee /app/scripts
parent4b7fa27ad0e49deac076910f1579999415267575 (diff)
downloadtangerine-wallet-browser-ac9e84ff40c0331cda6233be31241d68f05565f3.tar
tangerine-wallet-browser-ac9e84ff40c0331cda6233be31241d68f05565f3.tar.gz
tangerine-wallet-browser-ac9e84ff40c0331cda6233be31241d68f05565f3.tar.bz2
tangerine-wallet-browser-ac9e84ff40c0331cda6233be31241d68f05565f3.tar.lz
tangerine-wallet-browser-ac9e84ff40c0331cda6233be31241d68f05565f3.tar.xz
tangerine-wallet-browser-ac9e84ff40c0331cda6233be31241d68f05565f3.tar.zst
tangerine-wallet-browser-ac9e84ff40c0331cda6233be31241d68f05565f3.zip
add deprecation warning for web3
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/auto-reload.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/scripts/lib/auto-reload.js b/app/scripts/lib/auto-reload.js
index 534047330..dabf4278e 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 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) => {