aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 18:31:10 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 18:31:10 +0800
commitb10e33c04011c9b9f52841ed09de0b8d4cb5bc6a (patch)
tree9fc92b2658d5f178a22cb23185e6ff8f4d1292f9 /rpc
parentcc45b4d8b536a53b59696389e3609c2f633d07a7 (diff)
downloadgo-tangerine-b10e33c04011c9b9f52841ed09de0b8d4cb5bc6a.tar
go-tangerine-b10e33c04011c9b9f52841ed09de0b8d4cb5bc6a.tar.gz
go-tangerine-b10e33c04011c9b9f52841ed09de0b8d4cb5bc6a.tar.bz2
go-tangerine-b10e33c04011c9b9f52841ed09de0b8d4cb5bc6a.tar.lz
go-tangerine-b10e33c04011c9b9f52841ed09de0b8d4cb5bc6a.tar.xz
go-tangerine-b10e33c04011c9b9f52841ed09de0b8d4cb5bc6a.tar.zst
go-tangerine-b10e33c04011c9b9f52841ed09de0b8d4cb5bc6a.zip
More types supported
Diffstat (limited to 'rpc')
-rw-r--r--rpc/types.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/rpc/types.go b/rpc/types.go
index 83542c83d..205b58b0a 100644
--- a/rpc/types.go
+++ b/rpc/types.go
@@ -74,6 +74,14 @@ func newHexData(input interface{}) *hexdata {
} else {
d.data = input.Bytes()
}
+ case types.Bloom:
+ d.data = input.Bytes()
+ case *types.Bloom:
+ if input == nil {
+ d.isNil = true
+ } else {
+ d.data = input.Bytes()
+ }
case *big.Int:
d.data = input.Bytes()
case int64:
@@ -86,6 +94,18 @@ func newHexData(input interface{}) *hexdata {
d.data = big.NewInt(int64(input)).Bytes()
case uint:
d.data = big.NewInt(int64(input)).Bytes()
+ case int8:
+ d.data = big.NewInt(int64(input)).Bytes()
+ case uint8:
+ d.data = big.NewInt(int64(input)).Bytes()
+ case int16:
+ d.data = big.NewInt(int64(input)).Bytes()
+ case uint16:
+ d.data = big.NewInt(int64(input)).Bytes()
+ case int32:
+ d.data = big.NewInt(int64(input)).Bytes()
+ case uint32:
+ d.data = big.NewInt(int64(input)).Bytes()
case string: // hexstring
d.data = common.Big(input).Bytes()
default: