Przeglądaj źródła

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

Sheldon 6 lat temu
rodzic
commit
7527215a68
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      core/state/statedb_test.go

+ 1 - 1
core/state/statedb_test.go

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