diff --git a/execution/gethexec/node.go b/execution/gethexec/node.go index 21c2b4bece..355ed7a647 100644 --- a/execution/gethexec/node.go +++ b/execution/gethexec/node.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "reflect" + "sort" "sync/atomic" "testing" @@ -59,6 +60,11 @@ func (c *StylusTargetConfig) Validate() error { for target := range targetsSet { targets = append(targets, target) } + sort.Slice( + targets, + func(i, j int) bool { + return targets[i] < targets[j] + }) c.wasmTargets = targets return nil }