Commit 7cf29750 authored by Maurelian's avatar Maurelian

op-chain-ops: Remove InitializedValue from check-l2

parent 376b3a05
......@@ -742,7 +742,7 @@ func checkL2CrossDomainMessenger(addr common.Address, client *ethclient.Client)
return err
}
log.Info("L2CrossDomainMessenger", "_initialized", initialized)
if initialized.Uint64() != genesis.InitializedValue {
if initialized.Uint64() != 1 {
return fmt.Errorf("%w: %s", errInvalidInitialized, initialized)
}
......
......@@ -26,9 +26,6 @@ import (
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// InitializedValue represents the `Initializable` contract value. It should always be 1.
const InitializedValue = 1
var (
ErrInvalidDeployConfig = errors.New("invalid deploy config")
ErrInvalidImmutablesConfig = errors.New("invalid immutables config")
......@@ -730,7 +727,7 @@ func NewL2StorageConfig(config *DeployConfig, block *types.Block) (state.Storage
"msgNonce": 0,
}
storage["L2CrossDomainMessenger"] = state.StorageValues{
"_initialized": InitializedValue,
"_initialized": 1,
"_initializing": false,
"xDomainMsgSender": "0x000000000000000000000000000000000000dEaD",
"msgNonce": 0,
......
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