From 5ac0518c27bcf29a085b09c0ee19c52ae137b674 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Thu, 22 Aug 2024 20:47:58 -0500 Subject: [PATCH] Fix L2 alloc state dump runWithStateDump instead of runWithAllUpgrades --- .../optimism-contracts/deploy-contracts.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/config/fixturenet-optimism/optimism-contracts/deploy-contracts.sh b/config/fixturenet-optimism/optimism-contracts/deploy-contracts.sh index 618f462..31d9ba3 100755 --- a/config/fixturenet-optimism/optimism-contracts/deploy-contracts.sh +++ b/config/fixturenet-optimism/optimism-contracts/deploy-contracts.sh @@ -166,18 +166,16 @@ echo "Generating L2 genesis allocs..." L2_CHAIN_ID=$(jq ".l2ChainID" $deploy_config_file) DEPLOY_CONFIG_PATH=$deploy_config_file \ 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 "*************************************" # 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" -cp $OPTIMISM_ROOT/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/deployments/$DEPLOYMENT_CONTEXT-deploy.json /l1-deployment +cp /opt/optimism/packages/contracts-bedrock/deploy-config/$DEPLOYMENT_CONTEXT.json /l2-config cp allocs-l2.json /l2-config -echo "Deployment successful. Exiting" +echo "Deployment successful, exiting."