neo-go/pkg/core/transaction
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
..
attribute.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
attribute_test.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
attrtype.go native: introduce attribute pricing 2023-11-21 13:42:56 +03:00
attrtype_string.go core: adjust types of NVB, Conflicts and NotaryAssisted attributes 2022-06-01 15:09:06 +03:00
bench_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
conflicts.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
doc.go *: add more package-specific documentation 2021-03-19 16:18:45 +03:00
fuzz_test.go *: drop go 1.18 support in doc and build targets 2023-10-12 17:59:42 +03:00
helper_test.go *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
not_valid_before.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
notary_assisted.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
oracle.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
oracle_test.go *: stop using math/rand 2024-08-30 17:00:11 +03:00
oracleresponsecode_string.go oracle: check response Content-Type 2021-07-12 13:13:48 +03:00
reserved.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
signer.go *: use slices.Clone instead of make/copy 2024-08-24 22:41:48 +03:00
signer_test.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
transaction.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
transaction_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
witness.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
witness_condition.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
witness_condition_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
witness_rule.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
witness_rule_test.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
witness_scope.go core: do not use formatted error if not needed 2023-07-20 10:33:50 +03:00
witness_scope_string.go *: update Stringers wrt fresh Stringer version 2023-10-19 11:33:07 +03:00
witness_scope_test.go neorpc: adjust SignerWithWitness scopes parsing 2023-07-20 10:33:48 +03:00
witness_test.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
witnessaction_string.go transaction: add new Rules witness scope 2021-11-12 15:29:28 +03:00
witnessconditiontype_string.go *: update Stringers wrt fresh Stringer version 2023-10-19 11:33:07 +03:00