Skip to content

Commit

Permalink
Added env variables for faucet funds.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Sep 29, 2023
1 parent f219d66 commit 0d75511
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/manual-deploy-testnet-l2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
echo "BATCH_INTERVAL=${{vars.BATCH_INTERVAL}}"
echo "ROLLUP_INTERVAL=${{vars.ROLLUP_INTERVAL}}"
echo "FAUCET_FUNDS=${{vars.FAUCET_FUNDS}}"
- name: 'Login via Azure CLI'
uses: azure/login@v1
Expand Down Expand Up @@ -326,6 +327,7 @@ jobs:
-l2_poc_private_key=4bfe14725e685901c062ccd4e220c61cf9c189897b6c78bd18d7f51291b2b8f8 \
-message_bus_contract_addr=${{ needs.build.outputs.MSG_BUS_CONTRACT_ADDR }} \
-docker_image=${{vars.L2_HARDHATDEPLOYER_DOCKER_BUILD_TAG}}
-faucet_funds=${{vars.FAUCET_FUNDS}}
- name: 'Save container logs on failure'
if: failure()
Expand Down
3 changes: 2 additions & 1 deletion testnet/launcher/l2contractdeployer/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ func (n *ContractDeployer) Start() error {
}

envs := map[string]string{
"MESSAGE_BUS_ADDRESS": n.cfg.messageBusAddress,
"PREFUND_FAUCET_AMOUNT": n.cfg.faucetPrefundAmount,
"MESSAGE_BUS_ADDRESS": n.cfg.messageBusAddress,
"NETWORK_JSON": fmt.Sprintf(`
{
"layer1" : {
Expand Down

0 comments on commit 0d75511

Please sign in to comment.