From c0a2eb146a1fdbf37fa3c28a522c4b02d3896cc3 Mon Sep 17 00:00:00 2001 From: kumavis Date: Wed, 23 Nov 2016 10:48:20 -0800 Subject: [PATCH 1/2] rpc - add sync uninstallFilter support --- app/scripts/lib/inpage-provider.js | 7 +++++++ 1 file changed, 7 insertions(+) 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 () {} From 36c824889fda785591288220bbe34b1021f9b538 Mon Sep 17 00:00:00 2001 From: kumavis Date: Wed, 23 Nov 2016 11:00:48 -0800 Subject: [PATCH 2/2] changelog - add sync rpc eth_uninstallFilter note --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) 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.