diff --git a/go.mod b/go.mod index 151fe6b2e4..48a3a80414 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( github.com/davecgh/go-spew v1.1.1 github.com/deckarep/golang-set/v2 v2.1.0 github.com/dop251/goja v0.0.0-20230806174421-c933cf95e127 - github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240318114348-52d3dbd1605d + github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240404153844-7e8a79f3cf6e github.com/ethereum/c-kzg-4844 v0.4.0 github.com/fatih/color v1.13.0 github.com/fjl/gencodec v0.0.0-20230517082657-f9840df7b83e diff --git a/go.sum b/go.sum index 585f9f28a8..c69c08fc58 100644 --- a/go.sum +++ b/go.sum @@ -188,8 +188,8 @@ github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.m github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw= -github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240318114348-52d3dbd1605d h1:K7HdD/ZAcSFhcqqnUAbvU+8vsg0DzL8pvetHw5vRLCc= -github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240318114348-52d3dbd1605d/go.mod h1:7xh2awFQqsiZxFrHKTgEd+InVfDRrkKVUIuK8SAFHp0= +github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240404153844-7e8a79f3cf6e h1:chheKT7/Lhu1uUbQqvl3xjTCVfNLmFih6W62jY0mxKg= +github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240404153844-7e8a79f3cf6e/go.mod h1:7xh2awFQqsiZxFrHKTgEd+InVfDRrkKVUIuK8SAFHp0= github.com/ethereum/c-kzg-4844 v0.4.0 h1:3MS1s4JtA868KpJxroZoepdV0ZKBp3u/O5HcZ7R3nlY= github.com/ethereum/c-kzg-4844 v0.4.0/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0= github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8= diff --git a/params/superchain.go b/params/superchain.go index 83a5b47f5b..73231ebd74 100644 --- a/params/superchain.go +++ b/params/superchain.go @@ -21,7 +21,7 @@ func init() { func OPStackChainIDByName(name string) (uint64, error) { for id, ch := range superchain.OPChains { - if ch.Chain+"-"+ch.Superchain == name { + if ch.ShortName+"-"+ch.Superchain == name { return id, nil } } @@ -30,7 +30,7 @@ func OPStackChainIDByName(name string) (uint64, error) { func OPStackChainNames() (out []string) { for _, ch := range superchain.OPChains { - out = append(out, ch.Chain+"-"+ch.Superchain) + out = append(out, ch.ShortName+"-"+ch.Superchain) } sort.Strings(out) return