Skip to content

Commit

Permalink
fix: re-source env file after setting
Browse files Browse the repository at this point in the history
  • Loading branch information
parketh committed Nov 22, 2024
1 parent 1a6c11f commit c3f36d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/l2/l2-gen-addresses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ check_addresses_exist() {
private_key_var="GS_${role}_PRIVATE_KEY"
address="${!address_var}"
private_key="${!private_key_var}"
echo "$role: address=$address, private_key=$private_key"

if [[ -n "$address" ]] || [[ -n "$private_key" ]]; then
return 0
Expand Down Expand Up @@ -72,6 +71,9 @@ fund_address() {
--value "$amount" "$address"
}

# Update the .env file with the new addresses
source "$ENV_FILE"

# Fund the generated addresses
for role in ADMIN BATCHER PROPOSER; do
address_var="GS_${role}_ADDRESS"
Expand Down

0 comments on commit c3f36d7

Please sign in to comment.