Skip to content

Commit

Permalink
set .env.bridge in multi-call bash
Browse files Browse the repository at this point in the history
  • Loading branch information
bournezjc committed Oct 21, 2024
1 parent 55646de commit 52ce8f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/l2-bridge/l2-bridge-deploy-l1-multicall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ forge create --rpc-url "${L1_RPC_URL}" --private-key "${L1_FUNDED_PRIVATE_KEY}"
DEPLOYED_ADDRESS=$(grep "Deployed to:" forge_output.log | awk '{print $3}')
rm forge_output.log

# Update the .env.bridge file with the deployed address
sed -i.bak "s/^NEXT_PUBLIC_L1_MULTICALL3_ADDRESS=.*/NEXT_PUBLIC_L1_MULTICALL3_ADDRESS=${DEPLOYED_ADDRESS}/" ../.env.bridge

# Update the .env file with the deployed address
sed -i.bak "s/^NEXT_PUBLIC_L1_MULTICALL3_ADDRESS=.*/NEXT_PUBLIC_L1_MULTICALL3_ADDRESS=${DEPLOYED_ADDRESS}/" ../.env
rm ../.env.bak

0 comments on commit 52ce8f2

Please sign in to comment.