Skip to content

Commit

Permalink
feat: implement eth_uninstallFilter (#444)
Browse files Browse the repository at this point in the history
* feat: implement eth_uninstallFilter

* fixup! infer types
  • Loading branch information
eshaan7 authored Nov 24, 2024
1 parent 0f9ea70 commit dde0e53
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/src/execution/rpc/http_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,12 @@ impl<N: NetworkSpec> ExecutionRpc<N> for HttpRpc<N> {
.map_err(|e| RpcError::new("get_filter_changes", e))?)
}

async fn uninstall_filter(&self, _filter_id: U256) -> Result<bool> {
// TODO: support uninstalling
Ok(true)
async fn uninstall_filter(&self, filter_id: U256) -> Result<bool> {
Ok(self
.provider
.raw_request("eth_uninstallFilter".into(), (filter_id,))
.await
.map_err(|e| RpcError::new("uninstall_filter", e))?)
}

async fn get_new_filter(&self, filter: &Filter) -> Result<U256> {
Expand Down

0 comments on commit dde0e53

Please sign in to comment.