diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-01 17:38:06 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-01 17:38:06 +0800 |
commit | 7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6 (patch) | |
tree | 4290680ecf0db92a8ea04d0ed79b534c77648588 /rpc/messages.go | |
parent | 25998cfc456876a5447e45877b7f843730bab7c1 (diff) | |
download | dexon-7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6.tar.gz dexon-7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6.tar.zst dexon-7b7392826d7b76fd4a0bd57baa7ca1224a19a3f6.zip |
Improved response tests
Actually verifies output as by regex
Diffstat (limited to 'rpc/messages.go')
-rw-r--r-- | rpc/messages.go | 6 |
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 |