aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 11:55:17 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 11:55:17 +0800
commit3cea7d87c1b9fadf19211fad2aece303b1677e27 (patch)
tree1375f8d1ec0aa7f945f60bf83a427549d7914be2 /rpc/api.go
parentd791fe4975fa62618f854a86f1648d5fe7081b79 (diff)
downloaddexon-3cea7d87c1b9fadf19211fad2aece303b1677e27.tar.gz
dexon-3cea7d87c1b9fadf19211fad2aece303b1677e27.tar.zst
dexon-3cea7d87c1b9fadf19211fad2aece303b1677e27.zip
Rename FilterOptions to BlockFilterArgs
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/api.go b/rpc/api.go
index cef5e4689..9f0b88b48 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -406,7 +406,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
case "eth_compileSolidity", "eth_compileLLL", "eth_compileSerpent":
return NewNotImplementedError(req.Method)
case "eth_newFilter":
- args := new(FilterOptions)
+ args := new(BlockFilterArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
@@ -444,7 +444,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
}
*reply = NewLogsRes(p.xeth().Logs(args.Id))
case "eth_getLogs":
- args := new(FilterOptions)
+ args := new(BlockFilterArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
@@ -561,7 +561,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
return nil
}
-func toFilterOptions(options *FilterOptions) *core.FilterOptions {
+func toFilterOptions(options *BlockFilterArgs) *core.FilterOptions {
var opts core.FilterOptions
// Convert optional address slice/string to byte slice