From 14e4a725d6f5e2b68263edf9468d9088a22db328 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 ed5a54a..d8ab7be 100755 --- a/config/fixturenet-optimism/optimism-contracts/deploy-contracts.sh +++ b/config/fixturenet-optimism/optimism-contracts/deploy-contracts.sh @@ -164,19 +164,17 @@ 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 openssl rand -hex 32 > /l2-config/l2-jwt.txt -echo "Deployment successful. Exiting" +echo "Deployment successful, exiting."