Merge pull request #2018 from MetaMask/i2014-BetterWeb3DeprecationWarning

Make web3 deprecation notice more useful
feature/default_network_editable
Kevin Serrano 7 years ago committed by GitHub
commit ba2d1f8d3e
  1. 1
      CHANGELOG.md
  2. 2
      app/scripts/lib/auto-reload.js

@ -8,6 +8,7 @@
- Add the total amount of tokens when multiple tokens are added under the token list
- Use HTTPS links for Etherscan.
- Update Support center link to new one with HTTPS.
- Make web3 deprecation notice more useful by linking to a descriptive article.
## 3.9.11 2017-8-24

@ -11,7 +11,7 @@ function setupDappAutoReload (web3, observable) {
get: (_web3, key) => {
// show warning once on web3 access
if (!hasBeenWarned && key !== 'currentProvider') {
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')
console.warn('MetaMask: web3 will be deprecated in the near future in favor of the ethereumProvider \nhttps://github.com/MetaMask/faq/blob/master/detecting_metamask.md#web3-deprecation')
hasBeenWarned = true
}
// get the time of use

Loading…
Cancel
Save