mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
Merge pull request #1904 from MetaMask/web3-depreciation
Web3 depreciation warning
This commit is contained in:
commit
68c6b2d666
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Current Master
|
## Current Master
|
||||||
|
|
||||||
|
- Added a deprecation warning for web3 https://github.com/ethereum/mist/releases/tag/v0.9.0
|
||||||
|
|
||||||
## 3.9.6 2017-8-09
|
## 3.9.6 2017-8-09
|
||||||
|
|
||||||
- Replace account screen with an account drop-down menu.
|
- Replace account screen with an account drop-down menu.
|
||||||
|
@ -5,7 +5,10 @@ function setupDappAutoReload (web3, observable) {
|
|||||||
global.web3 = new Proxy(web3, {
|
global.web3 = new Proxy(web3, {
|
||||||
get: (_web3, name) => {
|
get: (_web3, name) => {
|
||||||
// get the time of use
|
// 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]
|
return _web3[name]
|
||||||
},
|
},
|
||||||
set: (_web3, name, value) => {
|
set: (_web3, name, value) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user