aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/messages.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 17:38:06 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 17:38:06 +0800
commit7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6 (patch)
tree4290680ecf0db92a8ea04d0ed79b534c77648588 /rpc/messages.go
parent25998cfc456876a5447e45877b7f843730bab7c1 (diff)
downloadgo-tangerine-7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6.tar
go-tangerine-7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6.tar.gz
go-tangerine-7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6.tar.bz2
go-tangerine-7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6.tar.lz
go-tangerine-7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6.tar.xz
go-tangerine-7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6.tar.zst
go-tangerine-7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6.zip
Improved response tests
Actually verifies output as by regex
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