diff --git a/config/fixturenet-optimism/l1-params.env b/config/fixturenet-optimism/l1-params.env index ae3b03b..e5a13bb 100644 --- a/config/fixturenet-optimism/l1-params.env +++ b/config/fixturenet-optimism/l1-params.env @@ -12,3 +12,4 @@ DEFAULT_CERC_L1_PORT=8545 DEFAULT_CERC_L1_ACCOUNTS_CSV_URL="http://fixturenet-eth-bootnode-geth:9898/accounts.csv" DEFAULT_CERC_L2_PROPOSER_AMOUNT="0.2ether" DEFAULT_CERC_L2_BATCHER_AMOUNT="0.1ether" +DEFAULT_CERC_L1_BEACON=http://fixturenet-eth-lighthouse-1:8001 \ No newline at end of file diff --git a/config/fixturenet-optimism/optimism-contracts/deploy-contracts.sh b/config/fixturenet-optimism/optimism-contracts/deploy-contracts.sh index d2fb9e1..c524de7 100755 --- a/config/fixturenet-optimism/optimism-contracts/deploy-contracts.sh +++ b/config/fixturenet-optimism/optimism-contracts/deploy-contracts.sh @@ -19,7 +19,7 @@ export IMPL_SALT=$(openssl rand -hex 32) echo "Using L1 RPC endpoint ${CERC_L1_RPC}" # Exit if a deployment already exists (on restarts) -if [ -d "/l1-deployment/$DEPLOYMENT_CONTEXT-deploy.json" ]; then +if [ -f "/l1-deployment/$DEPLOYMENT_CONTEXT-deploy.json" ]; then echo "Deployment directory /l1-deployment/$DEPLOYMENT_CONTEXT-deploy.json, checking OptimismPortal deployment" OPTIMISM_PORTAL_ADDRESS=$(cat /l1-deployment/$DEPLOYMENT_CONTEXT-deploy.json | jq -r .OptimismPortal) diff --git a/config/fixturenet-optimism/run-op-node.sh b/config/fixturenet-optimism/run-op-node.sh index 005c7e1..34d8e09 100755 --- a/config/fixturenet-optimism/run-op-node.sh +++ b/config/fixturenet-optimism/run-op-node.sh @@ -7,6 +7,7 @@ fi CERC_L1_CHAIN_ID="${CERC_L1_CHAIN_ID:-${DEFAULT_CERC_L1_CHAIN_ID}}" CERC_L1_RPC="${CERC_L1_RPC:-${DEFAULT_CERC_L1_RPC}}" DEPLOYMENT_CONTEXT="$CERC_L1_CHAIN_ID" +CERC_L1_BEACON="${CERC_L1_BEACON:-${DEFAULT_CERC_L1_BEACON}}" deploy_config_file="/l2-config/$DEPLOYMENT_CONTEXT.json" l1_deployment_file="/l1-deployment/$DEPLOYMENT_CONTEXT-deploy.json" @@ -34,4 +35,4 @@ op-node \ --p2p.sequencer.key="${SEQ_KEY#0x}" \ --l1=$CERC_L1_RPC \ --l1.rpckind=$RPC_KIND \ - --l1.beacon=http://fixturenet-eth-lighthouse-1:8001 + --l1.beacon=$CERC_L1_BEACON