neo-go/pkg/smartcontract/manifest
Roman Khimov 1b83dc2476 *: improve for loop syntax
Mostly it's about Go 1.22+ syntax with ranging over integers, but it also
prefers ranging over slices where possible (it makes code a little better to
read).

Notice that we have a number of dangerous loops where slices are mutated
during loop execution, many of these can't be converted since we need proper
length evalutation at every iteration.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-08-30 21:45:18 +03:00
..
standard *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
abi.go *: use cmp.Or where appropriate 2024-08-30 17:00:11 +03:00
abi_test.go manifest: add duplicate events/methods checks to ABI 2021-02-09 22:31:26 +03:00
container.go *: use slices.Index/slices.Contains where appropriate 2024-08-27 08:24:52 +03:00
container_test.go smartcontrct: take care of manifest permission descriptor wildcardness 2024-08-05 16:05:59 +03:00
event.go smartcontract: improve invalid notification error text 2023-08-18 12:02:43 +03:00
event_test.go runtime: check notifications against ABI 2022-10-04 17:52:38 +03:00
group.go manifest: deduplicate duplicate-checking code 2024-08-27 08:24:52 +03:00
group_test.go manifest: disallow null groups, fix #3522 2024-07-26 11:22:44 +03:00
manifest.go manifest: deduplicate duplicate-checking code 2024-08-27 08:24:52 +03:00
manifest_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
method.go manifest: add method validity check 2021-02-09 22:31:26 +03:00
method_test.go manifest: add method validity check 2021-02-09 22:31:26 +03:00
parameter.go manifest: deduplicate duplicate-checking code 2024-08-27 08:24:52 +03:00
parameter_test.go manifest: add validity checks for Parameter 2021-02-09 22:31:26 +03:00
permission.go manifest: deduplicate duplicate-checking code 2024-08-27 08:24:52 +03:00
permission_test.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00