good morning!!!!

Skip to content
Snippets Groups Projects
Commit 60c43d19 authored by Taylor Gerring's avatar Taylor Gerring
Browse files

Remove i2hex

parent 7c9bc851
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,7 @@ func (self *EthereumApi) NewFilter(args *FilterOptions, reply *interface{}) erro ...@@ -161,7 +161,7 @@ func (self *EthereumApi) NewFilter(args *FilterOptions, reply *interface{}) erro
id = self.filterManager.InstallFilter(filter) id = self.filterManager.InstallFilter(filter)
self.logs[id] = &logFilter{timeout: time.Now()} self.logs[id] = &logFilter{timeout: time.Now()}
*reply = i2hex(id) *reply = common.ToHex(big.NewInt(int64(id)).Bytes())
return nil return nil
} }
...@@ -198,7 +198,7 @@ func (self *EthereumApi) NewFilterString(args *FilterStringArgs, reply *interfac ...@@ -198,7 +198,7 @@ func (self *EthereumApi) NewFilterString(args *FilterStringArgs, reply *interfac
id = self.filterManager.InstallFilter(filter) id = self.filterManager.InstallFilter(filter)
self.logs[id] = &logFilter{timeout: time.Now()} self.logs[id] = &logFilter{timeout: time.Now()}
*reply = i2hex(id) *reply = common.ToHex(big.NewInt(int64(id)).Bytes())
return nil return nil
} }
......
...@@ -19,7 +19,6 @@ package rpc ...@@ -19,7 +19,6 @@ package rpc
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"math/big"
"reflect" "reflect"
"time" "time"
...@@ -90,10 +89,6 @@ func UnmarshalRawMessages(b []byte, iface interface{}, number *int64) (err error ...@@ -90,10 +89,6 @@ func UnmarshalRawMessages(b []byte, iface interface{}, number *int64) (err error
return nil return nil
} }
func i2hex(n int) string {
return common.ToHex(big.NewInt(int64(n)).Bytes())
}
type Log struct { type Log struct {
Address string `json:"address"` Address string `json:"address"`
Topic []string `json:"topic"` Topic []string `json:"topic"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment