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

This commit is contained in:
Sheldon 2019-07-09 16:32:28 +08:00 committed by Felix Lange
parent 8c249cb82f
commit 7527215a68
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ func newTestAction(addr common.Address, r *rand.Rand) testAction {
if !action.noAddr { if !action.noAddr {
nameargs = append(nameargs, addr.Hex()) nameargs = append(nameargs, addr.Hex())
} }
for _, i := range action.args { for i := range action.args {
action.args[i] = rand.Int63n(100) action.args[i] = rand.Int63n(100)
nameargs = append(nameargs, fmt.Sprint(action.args[i])) nameargs = append(nameargs, fmt.Sprint(action.args[i]))
} }