neo-go/pkg/smartcontract
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
..
binding smartcontract: support dynamic contract hash for bindings 2024-04-11 16:02:31 +03:00
callflag *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
context smartcontract: ensure nil ParameterContext Item's script is marshallable 2024-04-18 13:55:05 +03:00
manifest manifest: make default trusts invalid 2024-07-26 15:18:25 +03:00
nef compiler: perform NEF size check on serialization 2023-11-20 15:14:05 +03:00
rpcbinding smartcontract: fix DO NOT EDIT warning to autogenerated files 2023-12-25 13:01:36 +03:00
testdata cli: add filebytes parameter type 2021-02-19 10:52:45 +03:00
trigger [#2442] English Check 2022-05-04 19:48:27 +03:00
zkpbinding go.mod: upgrade minimum required Go version to 1.20 2024-03-05 13:54:10 +03:00
builder.go vm: allow to emit convertible 2023-05-17 12:47:31 +03:00
builder_test.go smartcontract: add Len to Builder 2022-09-14 10:25:10 +03:00
contract.go smartcontract: fix error message for CreateMultiSigRedeemScript 2022-10-07 15:56:34 +03:00
contract_test.go core: rename Neo.Crypto.CheckMultisig interop 2021-05-11 18:38:14 +03:00
doc.go smartcontract: improve package documentation 2022-08-01 21:31:23 +03:00
doc_test.go ci: fix lint issues (fix #2948) 2023-03-29 11:19:23 +08:00
entry.go smartcontract: Add CreateCallAndPrefetchIteratorScript() 2023-12-29 10:49:53 +03:00
param_type.go smartcontract: disallow Null and non-utf8 String 2023-08-18 16:41:33 +03:00
param_type_test.go smartcontract: disallow Null and non-utf8 String 2023-08-18 16:41:33 +03:00
parameter.go smartcontract: introduce Convertible interface 2024-01-23 16:09:57 +03:00
parameter_test.go smartcontract: improve TestParameterFromValue 2024-01-23 16:09:58 +03:00