File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
1111 "github.com/ethereum-optimism/optimism/devnet-sdk/controller/surface"
1212 "github.com/ethereum-optimism/optimism/devnet-sdk/descriptors"
1313 "github.com/ethereum-optimism/optimism/op-node/rollup"
14+ "github.com/ethereum-optimism/optimism/op-service/eth"
1415 "github.com/ethereum/go-ethereum/params"
1516)
1617
@@ -138,8 +139,12 @@ func fixupDevnetConfig(config *descriptors.DevnetEnvironment) error {
138139 return fmt .Errorf ("invalid L1 ID: %s" , config .L1 .ID )
139140 }
140141 if config .L1 .Config == nil {
141- config .L1 .Config = & params.ChainConfig {
142- ChainID : l1ID ,
142+ if l1Config := eth .L1ChainConfigByChainID (eth .ChainIDFromBig (l1ID )); l1Config != nil {
143+ config .L1 .Config = l1Config
144+ } else {
145+ config .L1 .Config = & params.ChainConfig {
146+ ChainID : l1ID ,
147+ }
143148 }
144149 }
145150 for _ , l2Chain := range config .L2 {
You can’t perform that action at this time.
0 commit comments