Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
**/network_params.yaml
.deploy
*wallet.json
.DS_Store
.DS_Store
**/.env.bak*
5 changes: 4 additions & 1 deletion scripts/l1/l1-verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
10 changes: 8 additions & 2 deletions scripts/l2/l2-gen-addresses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down