Skip to content

Commit

Permalink
first fork should initially start with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
mycodecrafting committed Feb 7, 2025
1 parent 8497d10 commit 17e5dab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions params/astria_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ func NewAstriaForks(forks map[string]AstriaForkConfig) (*AstriaForks, error) {
for k, v := range orderedForks[i-1].Precompiles {
orderedForks[i].Precompiles[k] = v
}
} else {
orderedForks[i] = GetDefaultAstriaForkData()
}

// Set fork-specific fields
Expand Down Expand Up @@ -208,10 +210,6 @@ func NewAstriaForks(forks map[string]AstriaForkConfig) (*AstriaForks, error) {
orderedForks[i].Precompiles[addr] = pType
}
}

if orderedForks[i].Precompiles == nil {
orderedForks[i].Precompiles = make(map[common.Address]PrecompileType)
}
}

if err := validateAstriaForks(orderedForks); err != nil {
Expand Down

0 comments on commit 17e5dab

Please sign in to comment.