Skip to content

Commit

Permalink
fix eth config
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Nov 22, 2023
1 parent 56c7add commit c6eef03
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions x/evm/types/chain_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,19 @@ func (cc ChainConfig) EthereumConfig(chainID *big.Int) *params.ChainConfig {
ArrowGlacierBlock: getBlockValue(cc.ArrowGlacierBlock),
GrayGlacierBlock: getBlockValue(cc.GrayGlacierBlock),
MergeNetsplitBlock: getBlockValue(cc.MergeNetsplitBlock),
ShanghaiTime: &cc.ShanghaiTime,
CancunTime: &cc.CancunTime,
PragueTime: &cc.PragueTime,
TerminalTotalDifficulty: nil,
Ethash: nil,
Clique: nil,
}
if cc.ShanghaiTime > 0 {
cfg.ShanghaiTime = &cc.ShanghaiTime
}
if cc.CancunTime > 0 {
cfg.CancunTime = &cc.CancunTime
}
if cc.PragueTime > 0 {
cfg.PragueTime = &cc.PragueTime
}
return cfg
}

Expand Down

0 comments on commit c6eef03

Please sign in to comment.