mirror of
https://github.com/status-im/op-geth.git
synced 2025-02-26 05:25:32 +00:00
If nil, type doesn't matter
This commit is contained in:
parent
ac03ff6f05
commit
bea3879d6f
@ -45,6 +45,9 @@ func (d *hexdata) UnmarshalJSON(b []byte) (err error) {
|
||||
func newHexData(input interface{}) *hexdata {
|
||||
d := new(hexdata)
|
||||
|
||||
if input == nil {
|
||||
d.data = nil
|
||||
}
|
||||
switch input := input.(type) {
|
||||
case []byte:
|
||||
d.data = input
|
||||
|
Loading…
x
Reference in New Issue
Block a user