neo-go/pkg/core/state
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
..
contract.go state: drop NativeContract, fix #3430 2024-05-16 18:46:46 +03:00
contract_test.go manifest: make default trusts invalid 2024-07-26 15:18:25 +03:00
deposit.go [#2442] English Check 2022-05-04 19:48:27 +03:00
deposit_test.go stackitem: introduce Convertible interface 2021-07-19 15:42:42 +03:00
mpt_root.go [#2442] English Check 2022-05-04 19:48:27 +03:00
mpt_root_test.go *: stop using math/rand 2024-08-30 17:00:11 +03:00
native_state.go state: always deserialize LastGasPerVote 2023-09-05 23:44:14 +03:00
native_state_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
notification_event.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
notification_event_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
oracle.go [#2442] English Check 2022-05-04 19:48:27 +03:00
oracle_test.go stackitem: introduce Convertible interface 2021-07-19 15:42:42 +03:00
storage_item.go dao: drop GetStorageItems* APIs 2022-03-31 19:18:51 +03:00
tokens.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
tokens_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
validator.go core: switch to the new voting system (via native NEO contract) 2020-04-27 16:06:50 +03:00