Skip to content

Commit

Permalink
Merge pull request #211 from oasisprotocol/kostko/fix/cfg-migration-n…
Browse files Browse the repository at this point in the history
…ilpt

fix: Avoid crash in network config migration
  • Loading branch information
kostko committed Mar 14, 2024
2 parents c2cd406 + 940ac2f commit 9472115
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ func (cfg *Config) migrateNetworks() bool {
continue
}

if net.ParaTimes.All == nil {
net.ParaTimes.All = make(map[string]*config.ParaTime)
}
net.ParaTimes.All[ptName] = pt
changes = true
}
Expand Down

0 comments on commit 9472115

Please sign in to comment.