diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-01 21:45:56 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-01 21:45:56 +0800 |
commit | bea3879d6f5862886948b9045b6c6111b41f8480 (patch) | |
tree | 5e8598d323b9e02153e1a252ed858f26541cdee9 /rpc | |
parent | ac03ff6f055ef2bd9404a30a0c257fdd2722eafe (diff) | |
download | go-tangerine-bea3879d6f5862886948b9045b6c6111b41f8480.tar.gz go-tangerine-bea3879d6f5862886948b9045b6c6111b41f8480.tar.zst go-tangerine-bea3879d6f5862886948b9045b6c6111b41f8480.zip |
If nil, type doesn't matter
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/messages.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rpc/messages.go b/rpc/messages.go index 3c011cd93..549268cce 100644 --- a/rpc/messages.go +++ b/rpc/messages.go @@ -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 |