Remove i2hex

pull/535/head
Taylor Gerring 10 years ago
parent 7c9bc8517d
commit 60c43d1952
  1. 4
      rpc/api.go
  2. 5
      rpc/util.go

@ -161,7 +161,7 @@ func (self *EthereumApi) NewFilter(args *FilterOptions, reply *interface{}) erro
id = self.filterManager.InstallFilter(filter)
self.logs[id] = &logFilter{timeout: time.Now()}
*reply = i2hex(id)
*reply = common.ToHex(big.NewInt(int64(id)).Bytes())
return nil
}
@ -198,7 +198,7 @@ func (self *EthereumApi) NewFilterString(args *FilterStringArgs, reply *interfac
id = self.filterManager.InstallFilter(filter)
self.logs[id] = &logFilter{timeout: time.Now()}
*reply = i2hex(id)
*reply = common.ToHex(big.NewInt(int64(id)).Bytes())
return nil
}

@ -19,7 +19,6 @@ package rpc
import (
"encoding/json"
"fmt"
"math/big"
"reflect"
"time"
@ -90,10 +89,6 @@ func UnmarshalRawMessages(b []byte, iface interface{}, number *int64) (err error
return nil
}
func i2hex(n int) string {
return common.ToHex(big.NewInt(int64(n)).Bytes())
}
type Log struct {
Address string `json:"address"`
Topic []string `json:"topic"`

Loading…
Cancel
Save