Commit 9bdcb026 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

op-deployer: Fix useInterop flag (#12813)

* op-deployer: Fix useInterop flag

* set interop offset
parent f80eb8dd
...@@ -70,7 +70,7 @@ func CombineDeployConfig(intent *Intent, chainIntent *ChainIntent, state *State, ...@@ -70,7 +70,7 @@ func CombineDeployConfig(intent *Intent, chainIntent *ChainIntent, state *State,
L2GenesisEcotoneTimeOffset: u64UtilPtr(0), L2GenesisEcotoneTimeOffset: u64UtilPtr(0),
L2GenesisFjordTimeOffset: u64UtilPtr(0), L2GenesisFjordTimeOffset: u64UtilPtr(0),
L2GenesisGraniteTimeOffset: u64UtilPtr(0), L2GenesisGraniteTimeOffset: u64UtilPtr(0),
UseInterop: false, UseInterop: intent.UseInterop,
}, },
L2CoreDeployConfig: genesis.L2CoreDeployConfig{ L2CoreDeployConfig: genesis.L2CoreDeployConfig{
L1ChainID: intent.L1ChainID, L1ChainID: intent.L1ChainID,
...@@ -102,6 +102,10 @@ func CombineDeployConfig(intent *Intent, chainIntent *ChainIntent, state *State, ...@@ -102,6 +102,10 @@ func CombineDeployConfig(intent *Intent, chainIntent *ChainIntent, state *State,
}, },
} }
if intent.UseInterop {
cfg.L2InitializationConfig.UpgradeScheduleDeployConfig.L2GenesisInteropTimeOffset = u64UtilPtr(0)
}
if chainState.StartBlock == nil { if chainState.StartBlock == nil {
// These are dummy variables - see below for rationale. // These are dummy variables - see below for rationale.
num := rpc.LatestBlockNumber num := rpc.LatestBlockNumber
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment