Skip to content

Commit

Permalink
op-node: Alphabetize network list (ethereum-optimism#12522)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaxter authored and samlaf committed Nov 10, 2024
1 parent 30d88b1 commit 260ba71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions op-node/chaincfg/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package chaincfg

import (
"fmt"
"sort"
"strings"

"github.com/ethereum-optimism/superchain-registry/superchain"
Expand Down Expand Up @@ -36,6 +37,7 @@ func AvailableNetworks() []string {
for _, cfg := range superchain.OPChains {
networks = append(networks, cfg.Chain+"-"+cfg.Superchain)
}
sort.Strings(networks)
return networks
}

Expand Down

0 comments on commit 260ba71

Please sign in to comment.