aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-24 03:32:04 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-24 03:32:04 +0800
commit053e262ae738af29cfe67e702350f1f046b4b311 (patch)
tree16607344b101f5192237dd589f948b2041077797 /app/scripts
parentb59a1e91b8f4b595500a0785f325e833fa35407d (diff)
downloadtangerine-wallet-browser-053e262ae738af29cfe67e702350f1f046b4b311.tar
tangerine-wallet-browser-053e262ae738af29cfe67e702350f1f046b4b311.tar.gz
tangerine-wallet-browser-053e262ae738af29cfe67e702350f1f046b4b311.tar.bz2
tangerine-wallet-browser-053e262ae738af29cfe67e702350f1f046b4b311.tar.lz
tangerine-wallet-browser-053e262ae738af29cfe67e702350f1f046b4b311.tar.xz
tangerine-wallet-browser-053e262ae738af29cfe67e702350f1f046b4b311.tar.zst
tangerine-wallet-browser-053e262ae738af29cfe67e702350f1f046b4b311.zip
delete web3.metamassk.watchAsset
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/lib/auto-reload.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/app/scripts/lib/auto-reload.js b/app/scripts/lib/auto-reload.js
index f3c89ecdb..cce31c3d2 100644
--- a/app/scripts/lib/auto-reload.js
+++ b/app/scripts/lib/auto-reload.js
@@ -14,23 +14,6 @@ function setupDappAutoReload (web3, observable) {
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
}
- // setup wallet
- if (key === 'metamask') {
- return {
- watchAsset: (params) => {
- return new Promise((resolve, reject) => {
- web3.currentProvider.sendAsync({
- jsonrpc: '2.0',
- method: 'metamask_watchAsset',
- params,
- }, (err, res) => {
- if (err) reject(err)
- resolve(res)
- })
- })
- },
- }
- }
// get the time of use
lastTimeUsed = Date.now()
// return value normally