|
|
|
@ -98,11 +98,6 @@ func (self *EthereumApi) getStateWithNum(num int64) *xeth.State { |
|
|
|
|
// return nil
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
func (self *EthereumApi) FilterChanged(id int, reply *interface{}) error { |
|
|
|
|
*reply = NewLogsRes(self.xeth().FilterChanged(id)) |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (self *EthereumApi) Logs(id int, reply *interface{}) error { |
|
|
|
|
*reply = NewLogsRes(self.xeth().Logs(id)) |
|
|
|
|
|
|
|
|
@ -493,7 +488,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error |
|
|
|
|
if err := json.Unmarshal(req.Params, &args); err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
return p.FilterChanged(args.Id, reply) |
|
|
|
|
*reply = NewLogsRes(p.xeth().FilterChanged(args.Id)) |
|
|
|
|
case "eth_getFilterLogs": |
|
|
|
|
args := new(FilterIdArgs) |
|
|
|
|
if err := json.Unmarshal(req.Params, &args); err != nil { |
|
|
|
|