Skip to content

Commit

Permalink
fix: Faucet address
Browse files Browse the repository at this point in the history
The faucet address was being shared with the deployment address, which can cause nonce conflicts.
  • Loading branch information
mslipper committed Jan 9, 2025
1 parent ae515ea commit a4d0ba4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/contracts/contract_deployer.star
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def deploy_contracts(plan, priv_key, l1_config_env_vars, optimism_args, l1_netwo
name="op-deployer-fund-script",
)

collect_fund = plan.run_sh(
plan.run_sh(
name="op-deployer-fund",
description="Collect keys, and fund addresses",
image=utils.DEPLOYMENT_UTILS_IMAGE,
Expand Down
5 changes: 3 additions & 2 deletions static_files/scripts/fund.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ for chain_id in "${chain_ids[@]}"; do
done

# Add the L1 and L2 faucet information to each chain's wallet data
# Use chain 20 from the ethereum_package to prevent conflicts
chain_wallets=$(echo "$chain_wallets" | jq \
--arg addr "$addr" \
--arg private_key "0x$PRIVATE_KEY" \
--arg addr "0xafF0CA253b97e54440965855cec0A8a2E2399896" \
--arg private_key "0x4b9f63ecf84210c5366c66d68fa1f5da1fa4f634fad6dfc86178e4d79ff9e59" \
'.["l1FaucetPrivateKey"] = $private_key | .["l1FaucetAddress"] = $addr')

chain_wallets=$(echo "$chain_wallets" | jq \
Expand Down

0 comments on commit a4d0ba4

Please sign in to comment.