Skip to content

Commit

Permalink
fix: teardown script path
Browse files Browse the repository at this point in the history
  • Loading branch information
parketh committed Nov 22, 2024
1 parent f94f077 commit 9b6d5be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/l2/l2-gen-addresses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -euo pipefail

# Set the path to the wallets.sh script
WALLETS_SCRIPT="$(pwd)/optimism/packages/contracts-bedrock/scripts/getting-started/wallets.sh"
TEARDOWN_SCRIPT="$(pwd)/scripts/l2/l2-teardown.sh"

# Run the wallets.sh script and capture its output
output=$($WALLETS_SCRIPT)
Expand All @@ -26,7 +27,7 @@ if check_addresses_exist; then
echo "Addresses already exist in .env file. Backing up and running teardown."
timestamp=$(date +%s)
cp "$ENV_FILE" "$ENV_FILE.bak-$timestamp"
./l2-teardown.sh
"$TEARDOWN_SCRIPT"
echo "Teardown complete."
fi

Expand Down

0 comments on commit 9b6d5be

Please sign in to comment.