Closed roninjin10 closed 8 months ago
When forking a live l2 we can use the already deployed contracts. But if the devnet is spun up fresh it must be able to deploy the contracts itself. Python reference code that does this is here: https://github.com/ethereum-optimism/optimism/blob/develop/bedrock-devnet/devnet/__init__.py#L106
This is done via dumping state into geth
Description
When forking a live l2 we can use the already deployed contracts. But if the devnet is spun up fresh it must be able to deploy the contracts itself. Python reference code that does this is here: https://github.com/ethereum-optimism/optimism/blob/develop/bedrock-devnet/devnet/__init__.py#L106