optimism icon indicating copy to clipboard operation
optimism copied to clipboard

How to set L2_CHAIN_ID before deploying L2 using Custom Gas Token

Open starlzy opened this issue 9 months ago • 1 comments

CONTRACT_ADDRESSES_PATH=deployments/artifact.json
DEPLOY_CONFIG_PATH=<PATH_TO_MY_DEPLOY_CONFIG>
STATE_DUMP_PATH=<PATH_TO_WRITE_L2_ALLOCS>
forge script scripts/L2Genesis.s.sol:L2Genesis
--sig 'runWithStateDump()' --chain-id $L2_CHAIN_ID

starlzy avatar May 08 '24 08:05 starlzy

The L2 chain id is pulled from the deploy config, see here

tynes avatar May 08 '24 11:05 tynes