Skip to content

Commit

Permalink
fix nil map
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Nov 15, 2022
1 parent e0f10cc commit d9a6aa2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions local/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,17 @@ 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{}
}
ln.subnetConfigFiles = networkConfig.SubnetConfigFiles
if ln.subnetConfigFiles == nil {
ln.subnetConfigFiles = map[string]string{}
}

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

0 comments on commit d9a6aa2

Please sign in to comment.