diff --git a/.gitignore b/.gitignore index c240bb1..75a1718 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ **/network_params.yaml .deploy *wallet.json -.DS_Store \ No newline at end of file +.DS_Store +**/.env.bak* \ No newline at end of file diff --git a/scripts/l1/l1-verify.sh b/scripts/l1/l1-verify.sh index 3151235..6aebc42 100755 --- a/scripts/l1/l1-verify.sh +++ b/scripts/l1/l1-verify.sh @@ -9,7 +9,10 @@ CL_PORT_START=$(yq '.port_publisher.cl.public_port_start' "$YAML_FILE") # Extract prefunded addresses PREFUNDED_ACCOUNTS=$(yq -r '.network_params.prefunded_accounts' "$YAML_FILE" | jq -r 'keys[]') -readarray -t PREFUNDED_ACCOUNTS_ARRAY <<< "$PREFUNDED_ACCOUNTS" +PREFUNDED_ACCOUNTS_ARRAY=() +while IFS= read -r line; do + PREFUNDED_ACCOUNTS_ARRAY+=("$line") +done <<< "$PREFUNDED_ACCOUNTS" # Calculate the actual ports L1_RPC_PORT=$((EL_PORT_START + 2)) diff --git a/scripts/l2/l2-gen-addresses.sh b/scripts/l2/l2-gen-addresses.sh index c750f18..d001ba1 100755 --- a/scripts/l2/l2-gen-addresses.sh +++ b/scripts/l2/l2-gen-addresses.sh @@ -82,8 +82,14 @@ for role in ADMIN BATCHER PROPOSER; do if [[ -n "$address" ]]; then balance=$(check_address_balance "$address") if [[ "$balance" == "0" ]]; then - echo "Funding $role address: $address with amount $L1_FUND_AMOUNT" - fund_address "$address" "$L1_FUND_AMOUNT" + # fund 0.1 ETH for ADMIN, use L1_FUND_AMOUNT for BATCHER and PROPOSER + if [[ "$role" == "ADMIN" ]]; then + amount="0.1ether" + else + amount="$L1_FUND_AMOUNT" + fi + echo "Funding $role address: $address with amount $amount" + fund_address "$address" "$amount" echo else echo "Error: $role address already funded: $address"