Commit 518f4649 authored by Mark Tyneway's avatar Mark Tyneway

review: fixup

parent 971d6ee0
...@@ -18,10 +18,10 @@ import ( ...@@ -18,10 +18,10 @@ import (
"github.com/ethereum-optimism/superchain-registry/superchain" "github.com/ethereum-optimism/superchain-registry/superchain"
) )
// addresses contains the L1 addresses of the contracts that are being upgraded to. // deployments contains the L1 addresses of the contracts that are being upgraded to.
// Note that the key is the L2 chain id. This is because the L1 contracts must be specific // Note that the key is the L2 chain id. This is because the L1 contracts must be specific
// for a particular OP Stack chain and cannot currently be used by multiple chains. // for a particular OP Stack chain and cannot currently be used by multiple chains.
var addresses = map[uint64]superchain.ImplementationList{ var deployments = map[uint64]superchain.ImplementationList{
// Base Sepolia // Base Sepolia
84532: { 84532: {
L1CrossDomainMessenger: superchain.VersionedContract{ L1CrossDomainMessenger: superchain.VersionedContract{
...@@ -175,7 +175,7 @@ func entrypoint(ctx *cli.Context) error { ...@@ -175,7 +175,7 @@ func entrypoint(ctx *cli.Context) error {
return errors.New("Cannot create L1 client") return errors.New("Cannot create L1 client")
} }
if clients.L2Client == nil { if clients.L2Client == nil {
return errors.New("Cannot create L1 client") return errors.New("Cannot create L2 client")
} }
l1ChainID, err := clients.L1Client.ChainID(ctx.Context) l1ChainID, err := clients.L1Client.ChainID(ctx.Context)
...@@ -192,7 +192,7 @@ func entrypoint(ctx *cli.Context) error { ...@@ -192,7 +192,7 @@ func entrypoint(ctx *cli.Context) error {
// Create a batch of transactions // Create a batch of transactions
batch := safe.Batch{} batch := safe.Batch{}
list, ok := addresses[l2ChainID.Uint64()] list, ok := deployments[l2ChainID.Uint64()]
if !ok { if !ok {
return fmt.Errorf("no implementations for chain ID %d", l2ChainID) return fmt.Errorf("no implementations for chain ID %d", l2ChainID)
} }
......
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