From 6e96e65cc84a023633aae721559543664b6fc16d Mon Sep 17 00:00:00 2001 From: Jun Kim <64379343+junkim012@users.noreply.github.com> Date: Wed, 25 Sep 2024 13:04:39 -0400 Subject: [PATCH] fix: write deployed addresses to out.json in makefile --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 33ed44e..e99f473 100644 --- a/Makefile +++ b/Makefile @@ -14,23 +14,23 @@ checkL2: deployL1: @echo "Setting environment variable LIVE_DEPLOY_READ_FILE_NAME to $(file)" - cp ./deployment-config/out-template.json ./deployment-config/outL1.json + cp ./deployment-config/out-template.json ./deployment-config/out.json @export LIVE_DEPLOY_READ_FILE_NAME=$(file) && forge script script/deploy/deployAll.s.sol --sig "run(string)" $(file) --fork-url=${L1_RPC_URL} deployL2: @echo "Setting environment variable LIVE_DEPLOY_READ_FILE_NAME to $(file)" - cp ./deployment-config/out-template.json ./deployment-config/outL2.json + cp ./deployment-config/out-template.json ./deployment-config/out.json @export LIVE_DEPLOY_READ_FILE_NAME=$(file) && forge script script/deploy/deployAll.s.sol --sig "run(string)" $(file) --fork-url=${L2_RPC_URL} live-deployL1: @echo "Setting environment variable LIVE_DEPLOY_READ_FILE_NAME to $(file)" - cp ./deployment-config/out-template.json ./deployment-config/outL1.json + cp ./deployment-config/out-template.json ./deployment-config/out.json @export LIVE_DEPLOY_READ_FILE_NAME=$(file) && forge script script/deploy/deployAll.s.sol --sig "run(string)" $(file) --fork-url=${L1_RPC_URL} --private-key=$(PRIVATE_KEY) --broadcast --slow --verify mv ./deployment-config/out.json ./deployment-config/outL1.json live-deployL2: @echo "Setting environment variable LIVE_DEPLOY_READ_FILE_NAME to $(file)" - cp ./deployment-config/out-template.json ./deployment-config/outL2.json + cp ./deployment-config/out-template.json ./deployment-config/out.json @export LIVE_DEPLOY_READ_FILE_NAME=$(file) && forge script script/deploy/deployAll.s.sol --sig "run(string)" $(file) --fork-url=${L2_RPC_URL} --private-key=$(PRIVATE_KEY) --broadcast --slow --verify mv ./deployment-config/out.json ./deployment-config/outL2.json