mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +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> |
||
---|---|---|
.. | ||
contract.go | ||
contract_test.go | ||
deposit.go | ||
deposit_test.go | ||
mpt_root.go | ||
mpt_root_test.go | ||
native_state.go | ||
native_state_test.go | ||
notification_event.go | ||
notification_event_test.go | ||
oracle.go | ||
oracle_test.go | ||
storage_item.go | ||
tokens.go | ||
tokens_test.go | ||
validator.go |