Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn start:contract should auto-check chain blocks before starting #65

Open
amessbee opened this issue Sep 10, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@amessbee
Copy link
Contributor

Currently, we ask devs to use yarn docker:logs to manually check whether chain is up and running and producing blocks before running yarn start:contract. This should be automated. Here are two possible solutions:

  1. At the end of scripts run by yarn start:docker, wait for a few (how many?) of blocks to be produced before exiting. I see that there is already
waitForBlock 2

in run-chain.sh. That's probably not enough?
2. At the start of yarn start:contract, wait for a few (how many?) of blocks to be produced before we start bundling/installing the contract.

A similar change should also be made to dapp-offer-up.

@amessbee amessbee added the enhancement New feature or request label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant