aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/messages.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/messages.go')
-rw-r--r--rpc/messages.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/rpc/messages.go b/rpc/messages.go
index 1ad41654b..42af53c58 100644
--- a/rpc/messages.go
+++ b/rpc/messages.go
@@ -50,8 +50,12 @@ func newHexData(input interface{}) *hexdata {
d.data = input.([]byte)
case common.Hash:
d.data = input.(common.Hash).Bytes()
+ case *common.Hash:
+ d.data = input.(*common.Hash).Bytes()
case common.Address:
d.data = input.(common.Address).Bytes()
+ case *common.Address:
+ d.data = input.(*common.Address).Bytes()
case *big.Int:
d.data = input.(*big.Int).Bytes()
case int64:
@@ -62,7 +66,7 @@ func newHexData(input interface{}) *hexdata {
d.data = big.NewInt(int64(input.(int))).Bytes()
case uint:
d.data = big.NewInt(int64(input.(uint))).Bytes()
- case string:
+ case string: // hexstring
d.data = common.Big(input.(string)).Bytes()
default:
d.data = nil