Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use bytes interface value for zero native type struct fields instead …
…of dynamic list (#981) * Use bytes interface value for zero native type struct fields instead of dynamic list If a struct has a byte array/slice field and it happens to be the zero value, a dynamic list object was returned. This caused issues with functions taking `Bytes` via arguments, as the type checker will accept such functions, but they might fail at runtime. To work around this, the raw bytes array/slice is returned in case of an zero value. * Remove unused special handling cases for retrieving field values For most types, it is good enough to use the raw interface values for null types. Hence the logic of getFieldValue has been adjusted to remove some special handling code.
- Loading branch information