aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-18 23:10:08 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-18 23:10:08 +0800
commit60c43d195289e65af2146d8655350b7f7dca66b7 (patch)
tree7f829945037786ed5bd175bd43e0327314b4522f /rpc/api.go
parent7c9bc8517d92cd7fc75e0ea7c3eff16546a82702 (diff)
downloadgo-tangerine-60c43d195289e65af2146d8655350b7f7dca66b7.tar
go-tangerine-60c43d195289e65af2146d8655350b7f7dca66b7.tar.gz
go-tangerine-60c43d195289e65af2146d8655350b7f7dca66b7.tar.bz2
go-tangerine-60c43d195289e65af2146d8655350b7f7dca66b7.tar.lz
go-tangerine-60c43d195289e65af2146d8655350b7f7dca66b7.tar.xz
go-tangerine-60c43d195289e65af2146d8655350b7f7dca66b7.tar.zst
go-tangerine-60c43d195289e65af2146d8655350b7f7dca66b7.zip
Remove i2hex
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 57075bffc..6154a0b28 100644
--- a/rpc/api.go
+++ b/rpc/api.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
}