neo-go/pkg/core/interop/runtime
Roman Khimov b10af1ed31 manifest: make default trusts invalid
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>
2024-07-26 15:18:25 +03:00
..
engine.go interop: use executing contract state for permissions checks 2024-06-03 12:32:10 +03:00
engine_test.go core: add System.Runtime.CurrentSigners syscall 2023-11-20 14:46:27 +03:00
ext_test.go manifest: make default trusts invalid 2024-07-26 15:18:25 +03:00
util.go *: Convert slices to arrays instead of copy where possible 2024-07-05 20:36:22 +04:00
util_test.go vm: support immutable compound types 2022-05-31 08:07:50 +03:00
witness.go interop/vm: use more robust CalledByEntry check 2022-08-05 14:35:00 +03:00