Commit f99424de authored by mbaxter's avatar mbaxter Committed by GitHub

op-node: Alphabetize network list (#12522)

parent d2c5146d
...@@ -2,6 +2,7 @@ package chaincfg ...@@ -2,6 +2,7 @@ package chaincfg
import ( import (
"fmt" "fmt"
"sort"
"strings" "strings"
"github.com/ethereum-optimism/superchain-registry/superchain" "github.com/ethereum-optimism/superchain-registry/superchain"
...@@ -36,6 +37,7 @@ func AvailableNetworks() []string { ...@@ -36,6 +37,7 @@ func AvailableNetworks() []string {
for _, cfg := range superchain.OPChains { for _, cfg := range superchain.OPChains {
networks = append(networks, cfg.Chain+"-"+cfg.Superchain) networks = append(networks, cfg.Chain+"-"+cfg.Superchain)
} }
sort.Strings(networks)
return networks return networks
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment