mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 09:29:38 +00:00
b10af1ed31
Refs. #3522. The core problem is the same as for groups/features: we can't allow empty trusts when they're unmarshalled from JSON. But unlike others we can't easily differentiate missing any value with other cases because the default value for WildPermissionDescs is a valid thing. Adding an additional field makes it invalid and we can build around it. Other options are implementing custom UnmarshalJSON for Manifest (too much for this) or making Trusts a pointer (an option, but can fail in too many ways). Signed-off-by: Roman Khimov <roman@nspcc.ru> |
||
---|---|---|
.. | ||
standard | ||
abi.go | ||
abi_test.go | ||
container.go | ||
container_test.go | ||
event.go | ||
event_test.go | ||
group.go | ||
group_test.go | ||
manifest.go | ||
manifest_test.go | ||
method.go | ||
method_test.go | ||
parameter.go | ||
parameter_test.go | ||
permission.go | ||
permission_test.go |