Skip to content

Commit

Permalink
fix: write deployed addresses to out.json in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
junkim012 committed Sep 25, 2024
1 parent 0b663ac commit 6e96e65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6e96e65

Please sign in to comment.