1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

Merge pull request #884 from MetaMask/i883-sync-uninstallFilter

Add support for sync RPC uninstallFilter
This commit is contained in:
kumavis 2016-11-23 14:29:21 -05:00 committed by GitHub
commit 323f3cb1a0
2 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,8 @@
## Current Master
- Add support for synchronous RPC method "eth_uninstallFilter".
## 2.13.10 2016-11-22
- Improve gas calculation logic.

View File

@ -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 () {}