Fix L2 alloc state dump
runWithStateDump instead of runWithAllUpgrades
This commit is contained in:
parent
2939d549cd
commit
5ac0518c27
@ -166,18 +166,16 @@ echo "Generating L2 genesis allocs..."
|
|||||||
L2_CHAIN_ID=$(jq ".l2ChainID" $deploy_config_file)
|
L2_CHAIN_ID=$(jq ".l2ChainID" $deploy_config_file)
|
||||||
DEPLOY_CONFIG_PATH=$deploy_config_file \
|
DEPLOY_CONFIG_PATH=$deploy_config_file \
|
||||||
CONTRACT_ADDRESSES_PATH=deployments/$DEPLOYMENT_CONTEXT-deploy.json \
|
CONTRACT_ADDRESSES_PATH=deployments/$DEPLOYMENT_CONTEXT-deploy.json \
|
||||||
forge script --chain-id $L2_CHAIN_ID scripts/L2Genesis.s.sol:L2Genesis --sig 'runWithAllUpgrades()' --private-key $ADMIN_KEY
|
STATE_DUMP_PATH=allocs-l2.json \
|
||||||
|
forge script --chain-id $L2_CHAIN_ID scripts/L2Genesis.s.sol:L2Genesis --sig 'runWithStateDump()' --private-key $ADMIN_KEY
|
||||||
|
|
||||||
OPTIMISM_ROOT=/opt/optimism
|
|
||||||
|
|
||||||
cp $OPTIMISM_ROOT/contracts-bedrock/state-dump-$L2_CHAIN_ID.json allocs-l2.json
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo "*************************************"
|
echo "*************************************"
|
||||||
|
|
||||||
# Copy files needed by other containers to the appropriate shared volumes
|
# Copy files needed by other containers to the appropriate shared volumes
|
||||||
echo "Copying deployment artifacts volume l1_deployment and deploy-config to volume l2_config"
|
echo "Copying deployment artifacts volume l1_deployment and deploy-config to volume l2_config"
|
||||||
cp $OPTIMISM_ROOT/packages/contracts-bedrock/deployments/$DEPLOYMENT_CONTEXT-deploy.json /l1-deployment
|
cp /opt/optimism/packages/contracts-bedrock/deployments/$DEPLOYMENT_CONTEXT-deploy.json /l1-deployment
|
||||||
cp $OPTIMISM_ROOT/packages/contracts-bedrock/deploy-config/$DEPLOYMENT_CONTEXT.json /l2-config
|
cp /opt/optimism/packages/contracts-bedrock/deploy-config/$DEPLOYMENT_CONTEXT.json /l2-config
|
||||||
cp allocs-l2.json /l2-config
|
cp allocs-l2.json /l2-config
|
||||||
|
|
||||||
echo "Deployment successful. Exiting"
|
echo "Deployment successful, exiting."
|
||||||
|
Loading…
Reference in New Issue
Block a user