good morning!!!!

Skip to content
Snippets Groups Projects
Commit b10e33c0 authored by Taylor Gerring's avatar Taylor Gerring
Browse files

More types supported

parent cc45b4d8
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,14 @@ func newHexData(input interface{}) *hexdata { ...@@ -74,6 +74,14 @@ func newHexData(input interface{}) *hexdata {
} else { } else {
d.data = input.Bytes() 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: case *big.Int:
d.data = input.Bytes() d.data = input.Bytes()
case int64: case int64:
...@@ -86,6 +94,18 @@ func newHexData(input interface{}) *hexdata { ...@@ -86,6 +94,18 @@ func newHexData(input interface{}) *hexdata {
d.data = big.NewInt(int64(input)).Bytes() d.data = big.NewInt(int64(input)).Bytes()
case uint: case uint:
d.data = big.NewInt(int64(input)).Bytes() 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 case string: // hexstring
d.data = common.Big(input).Bytes() d.data = common.Big(input).Bytes()
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment