Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
piersy committed Oct 2, 2024
1 parent b107944 commit c4ecff1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions op-chain-ops/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
// L2GenesisBlockNumber is always going to be zero, since there don't seem to be any assignments to
// L2GenesisBlockNumber in the codebase so it must only be set by deserializing config, and running the tests and
// inspecting the value of L2GenesisBlockNumber revealed only zeros.

var cel2Time uint64
if config.L2GenesisBlockNumber > 0 {
cel2Time = *config.RegolithTime(block.Time())
}
optimismChainConfig := params.ChainConfig{
ChainID: new(big.Int).SetUint64(config.L2ChainID),
HomesteadBlock: big.NewInt(0),
Expand Down

0 comments on commit c4ecff1

Please sign in to comment.