graphprotocol / graph-tooling

Monorepo for various tools used by subgraph developers.
https://thegraph.com/docs
Apache License 2.0
392 stars 210 forks source link

Fix CLI validation for `startBlock` and `contractName` fetched from external APIs #1767

Closed 0237h closed 1 week ago

0237h commented 1 week ago

If a value was retrieved via Etherscan-like APIs for startBlock and contractName, their value couldn't be overwritten by the user in the prompt.

This change corrects that behavior. The prompt can still be skipped by passing those values from the init command line directly (e.g. --start-block=<value>).

changeset-bot[bot] commented 1 week ago

🦋 Changeset detected

Latest commit: 1a3a63868f662d7f2dc9d6e15c0494b1fcc9eff8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------------ | ----- | | @graphprotocol/graph-cli | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR