aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-11-24 03:29:21 +0800
committerGitHub <noreply@github.com>2016-11-24 03:29:21 +0800
commit323f3cb1a05947f320f77fc3e87c9d6c70ea1900 (patch)
tree0a926ce571d0975cb171515807597f8e33ec71cf
parent93bbe2c60d36bfda3cd1a3a510382724be640480 (diff)
parent36c824889fda785591288220bbe34b1021f9b538 (diff)
downloadtangerine-wallet-browser-323f3cb1a05947f320f77fc3e87c9d6c70ea1900.tar
tangerine-wallet-browser-323f3cb1a05947f320f77fc3e87c9d6c70ea1900.tar.gz
tangerine-wallet-browser-323f3cb1a05947f320f77fc3e87c9d6c70ea1900.tar.bz2
tangerine-wallet-browser-323f3cb1a05947f320f77fc3e87c9d6c70ea1900.tar.lz
tangerine-wallet-browser-323f3cb1a05947f320f77fc3e87c9d6c70ea1900.tar.xz
tangerine-wallet-browser-323f3cb1a05947f320f77fc3e87c9d6c70ea1900.tar.zst
tangerine-wallet-browser-323f3cb1a05947f320f77fc3e87c9d6c70ea1900.zip
Merge pull request #884 from MetaMask/i883-sync-uninstallFilter
Add support for sync RPC uninstallFilter
-rw-r--r--CHANGELOG.md2
-rw-r--r--app/scripts/lib/inpage-provider.js7
2 files changed, 9 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 53ec23089..6bd23e22c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
## Current Master
+- Add support for synchronous RPC method "eth_uninstallFilter".
+
## 2.13.10 2016-11-22
- Improve gas calculation logic.
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js
index f1ba2e0ed..71ac69ad1 100644
--- a/app/scripts/lib/inpage-provider.js
+++ b/app/scripts/lib/inpage-provider.js
@@ -82,6 +82,11 @@ MetamaskInpageProvider.prototype.send = function (payload) {
result = selectedAddress || '0x0000000000000000000000000000000000000000'
break
+ case 'eth_uninstallFilter':
+ self.sendAsync(payload, noop)
+ result = true
+ break
+
// throw not-supported Error
default:
var link = 'https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#dizzy-all-async---think-of-metamask-as-a-light-client'
@@ -127,3 +132,5 @@ function eachJsonMessage(payload, transformFn){
return transformFn(payload)
}
}
+
+function noop () {}