Skip to content

Commit

Permalink
fix: Add missing envars and increase default balance in `docker-compo…
Browse files Browse the repository at this point in the history
…se.yml` (#404)

In order to reference this Docker Compose configuration in another
`docker-compose.yml` and have it be easier to inject environment
variables, we need to declare the envars we're expecting.

Also while here, increase the amount of ETH allocated to make local
testing easier.
  • Loading branch information
sds committed Nov 6, 2023
1 parent 0451f3f commit b67fbd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
retry_wait_seconds: 5
max_attempts: 10
shell: bash
command: '[ "$(cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)" = 1000000000000000000 ]' # Default address
command: '[ "$(cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)" = 4096000000000000000000 ]' # Default address
on_retry_command: docker compose logs && docker compose ps && cast balance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266

- name: Wait for contract to be deployed
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ services:
- STORAGE_RENT_OPERATOR_ADDRESS
- STORAGE_RENT_TREASURER_ADDRESS
- BUNDLER_TRUSTED_CALLER_ADDRESS
- METADATA_VALIDATOR_OWNER_ADDRESS
- MIGRATOR_ADDRESS
entrypoint: |
sh -c '
set -e
Expand All @@ -68,7 +70,7 @@ services:
echo "Enabling impersonation"
cast rpc anvil_autoImpersonateAccount true --rpc-url "$$RPC_URL" > /dev/null
echo "Funding deployer"
cast rpc anvil_setBalance "$$DEPLOYER" 0xde0b6b3a7640000 --rpc-url "$$RPC_URL" > /dev/null
cast rpc anvil_setBalance "$$DEPLOYER" 0xde0b6b3a7640000000 --rpc-url "$$RPC_URL" > /dev/null
echo "Deploying contract"
forge install
forge script -v script/DeployL2.s.sol --rpc-url "$$RPC_URL" --unlocked --broadcast --sender "$$DEPLOYER"
Expand Down

0 comments on commit b67fbd8

Please sign in to comment.