aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 23:49:22 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 23:49:22 +0800
commiteac4d582d7bfe427d4bf5c738e38f1f9861cd30a (patch)
tree3bace4da802561d0e02b52141830ad0187069642 /rpc
parent1045015a3c8df048d80c0f66598a8a8fa09b2f71 (diff)
downloadgo-tangerine-eac4d582d7bfe427d4bf5c738e38f1f9861cd30a.tar
go-tangerine-eac4d582d7bfe427d4bf5c738e38f1f9861cd30a.tar.gz
go-tangerine-eac4d582d7bfe427d4bf5c738e38f1f9861cd30a.tar.bz2
go-tangerine-eac4d582d7bfe427d4bf5c738e38f1f9861cd30a.tar.lz
go-tangerine-eac4d582d7bfe427d4bf5c738e38f1f9861cd30a.tar.xz
go-tangerine-eac4d582d7bfe427d4bf5c738e38f1f9861cd30a.tar.zst
go-tangerine-eac4d582d7bfe427d4bf5c738e38f1f9861cd30a.zip
Patches
Diffstat (limited to 'rpc')
-rw-r--r--rpc/types.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpc/types.go b/rpc/types.go
index 549268cce..2d0cf53be 100644
--- a/rpc/types.go
+++ b/rpc/types.go
@@ -47,6 +47,7 @@ func newHexData(input interface{}) *hexdata {
if input == nil {
d.data = nil
+ return d
}
switch input := input.(type) {
case []byte:
@@ -57,8 +58,8 @@ func newHexData(input interface{}) *hexdata {
d.data = input.Bytes()
case common.Address:
d.data = input.Bytes()
- case *common.Address:
- d.data = input.Bytes()
+ // case *common.Address:
+ // d.data = input.Bytes()
case *big.Int:
d.data = input.Bytes()
case int64: