diff --git a/rpc/types.go b/rpc/types.go index 7de0c5e..099b49e 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -175,7 +175,7 @@ func (env *DataBytesOrJSON) UnmarshalJSON(data []byte) error { if temp == nil { // TODO: is this an error? - return fmt.Errorf("envelope is nil: %v", env) + return nil } // TODO: check if first character is `[` as the check. // TODO: store raw bytes, and unmarshal on request.