diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 02:19:52 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 02:19:52 +0800 |
commit | d670c861d7b7acb9983fdad065b2b67b0d598c45 (patch) | |
tree | 9c835f728fda1cfe00f79534c77913ec9cf5f925 /rpc/api.go | |
parent | 0685810ec604134bdf5b4ea555722909f72a7f57 (diff) | |
download | go-tangerine-d670c861d7b7acb9983fdad065b2b67b0d598c45.tar.gz go-tangerine-d670c861d7b7acb9983fdad065b2b67b0d598c45.tar.zst go-tangerine-d670c861d7b7acb9983fdad065b2b67b0d598c45.zip |
Move Log to LogRes
Diffstat (limited to 'rpc/api.go')
-rw-r--r-- | rpc/api.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/api.go b/rpc/api.go index 6154a0b28..792498547 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -208,7 +208,7 @@ func (self *EthereumApi) FilterChanged(id int, reply *interface{}) error { defer self.logMut.Unlock() if self.logs[id] != nil { - *reply = toLogs(self.logs[id].get()) + *reply = NewLogsRes(self.logs[id].get()) } return nil @@ -220,7 +220,7 @@ func (self *EthereumApi) Logs(id int, reply *interface{}) error { filter := self.filterManager.GetFilter(id) if filter != nil { - *reply = toLogs(filter.Find()) + *reply = NewLogsRes(filter.Find()) } return nil @@ -230,7 +230,7 @@ func (self *EthereumApi) AllLogs(args *FilterOptions, reply *interface{}) error filter := core.NewFilter(self.xeth().Backend()) filter.SetOptions(toFilterOptions(args)) - *reply = toLogs(filter.Find()) + *reply = NewLogsRes(filter.Find()) return nil } |