You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments