Skip to content

Handle OVM_DeployerWhitelist initialization automatically #560

@smartcontracts

Description

@smartcontracts

OVM_DeployerWhitelist has a function initialize() which must be called after the contract is created. We currently have a manual process for doing this. Ideally, this process would be handled automatically during the state dump generation step. It's necessary to note that we cannot call initialize() directly because the state dump is generated by deploying to an L1 chain (the contract is compiled for L2). Instead, we would need to directly manipulate the relevant storage slots chugsplash style (chugsplash could easily handle this case).


This contract can't have a constructor that sets the owner? We can't forget to call this on L2 post regenesis
Other solutions:

  • take-dump.ts calls initialize() with a configurable value
  • We use the geth config option address-manager-owner and set the storage slot on startup

Originally posted by @tynes in #548 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions