Skip to content

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

Merged
0237h merged 1 commit into
graphprotocol:mainfrom
0237h:fix/confirm-etherscan-fetched-entries
Nov 19, 2024
Merged

0237h merged 1 commit into
graphprotocol:mainfrom
0237h:fix/confirm-etherscan-fetched-entries

Conversation

@0237h

@0237h 0237h commented Nov 19, 2024 •

Copy link
Copy Markdown
Contributor

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

changeset-bot Bot commented Nov 19, 2024 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1a3a638

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

Specifically for `startBlock` and `contractName`.
@0237h
0237h force-pushed the fix/confirm-etherscan-fetched-entries branch from 55061c8 to 1a3a638 Compare November 19, 2024 17:44
@0237h
0237h requested a review from YaroShkvorets November 19, 2024 18:00

@YaroShkvorets YaroShkvorets left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0237h
0237h merged commit 6f2cb45 into graphprotocol:main Nov 19, 2024
@0237h
0237h deleted the fix/confirm-etherscan-fetched-entries branch November 19, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants