aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 11:05:23 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 11:05:23 +0800
commit84b19971fadaae6d4b77667327d967f62d8726f8 (patch)
tree1956fb831b4863dc2954cd4b71f614289c0807e1 /rpc
parent4663a55f123c3d4886a0537243d1ad86d2a51f21 (diff)
downloaddexon-84b19971fadaae6d4b77667327d967f62d8726f8.tar
dexon-84b19971fadaae6d4b77667327d967f62d8726f8.tar.gz
dexon-84b19971fadaae6d4b77667327d967f62d8726f8.tar.bz2
dexon-84b19971fadaae6d4b77667327d967f62d8726f8.tar.lz
dexon-84b19971fadaae6d4b77667327d967f62d8726f8.tar.xz
dexon-84b19971fadaae6d4b77667327d967f62d8726f8.tar.zst
dexon-84b19971fadaae6d4b77667327d967f62d8726f8.zip
inline UninstallFilter
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 495771a59..2dd171a65 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -98,12 +98,6 @@ func (self *EthereumApi) getStateWithNum(num int64) *xeth.State {
// return nil
// }
-func (self *EthereumApi) UninstallFilter(id int, reply *interface{}) error {
- *reply = self.xeth().UninstallFilter(id)
-
- return nil
-}
-
func (self *EthereumApi) NewFilterString(args *FilterStringArgs, reply *interface{}) error {
if err := args.requirements(); err != nil {
return err
@@ -498,7 +492,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
- return p.UninstallFilter(args.Id, reply)
+ *reply = p.xeth().UninstallFilter(args.Id)
case "eth_getFilterChanges":
args := new(FilterIdArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {