neo-go/pkg/smartcontract
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
..
binding *: use slices.Sort() where appropriate 2024-08-27 08:24:52 +03:00
callflag *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
context *: use slices package for sorting and searching 2024-08-27 12:29:44 +03:00
manifest *: improve for loop syntax 2024-08-30 21:45:18 +03:00
nef compiler: perform NEF size check on serialization 2023-11-20 15:14:05 +03:00
rpcbinding rpcbinding: use slices.Delete* for element filtering 2024-08-30 21:35:27 +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 *: improve for loop syntax 2024-08-30 21:45:18 +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 *: use slices package for sorting and searching 2024-08-27 12:29:44 +03:00
contract_test.go *: improve for loop syntax 2024-08-30 21:45:18 +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 *: return errors.ErrUnsupported where appropriate 2024-08-27 12:51:12 +03:00
parameter_test.go *: return errors.ErrUnsupported where appropriate 2024-08-27 12:51:12 +03:00