From 220b2f4174de8ac280790de2d5c9df5b627acee8 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Fri, 11 Jul 2025 09:37:51 +0800 Subject: [PATCH] core/state: fix random test args #19255 (#1187) Co-authored-by: Sheldon <11510383@mail.sustc.edu.cn> --- core/state/statedb_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index 0aa1f6ef4d..89220fba66 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -320,7 +320,7 @@ func newTestAction(addr common.Address, r *rand.Rand) testAction { if !action.noAddr { nameargs = append(nameargs, addr.Hex()) } - for _, i := range action.args { + for i := range action.args { action.args[i] = rand.Int63n(100) nameargs = append(nameargs, fmt.Sprint(action.args[i])) }