Skip to content

Commit

Permalink
make loadConfig to fix nil map panics
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Nov 15, 2022
1 parent ceed37d commit 6fdc97e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions local/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,13 @@ func (ln *localNetwork) loadConfig(ctx context.Context, networkConfig network.Co
ln.flags = networkConfig.Flags
ln.binaryPath = networkConfig.BinaryPath
ln.chainConfigFiles = networkConfig.ChainConfigFiles
if ln.chainConfigFiles == nil {
ln.chainConfigFiles = map[string]string{}
}
ln.upgradeConfigFiles = networkConfig.UpgradeConfigFiles
if ln.upgradeConfigFiles == nil {
ln.upgradeConfigFiles = map[string]string{}
}

// Sort node configs so beacons start first
var nodeConfigs []node.Config
Expand Down

0 comments on commit 6fdc97e

Please sign in to comment.