core/state: fix random test args #19255 (#1187)

Co-authored-by: Sheldon <11510383@mail.sustc.edu.cn>
This commit is contained in:
Daniel Liu 2025-07-11 09:37:51 +08:00 committed by GitHub
parent 618a8dd247
commit 220b2f4174
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]))
}