aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/messages.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 21:45:56 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 21:45:56 +0800
commitbea3879d6f5862886948b9045b6c6111b41f8480 (patch)
tree5e8598d323b9e02153e1a252ed858f26541cdee9 /rpc/messages.go
parentac03ff6f055ef2bd9404a30a0c257fdd2722eafe (diff)
downloaddexon-bea3879d6f5862886948b9045b6c6111b41f8480.tar.gz
dexon-bea3879d6f5862886948b9045b6c6111b41f8480.tar.zst
dexon-bea3879d6f5862886948b9045b6c6111b41f8480.zip
If nil, type doesn't matter
Diffstat (limited to 'rpc/messages.go')
-rw-r--r--rpc/messages.go3
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