Skip to content

When adding a second contract if abi fetching fails, it exits and gives no further options. #1560

@HareemSaad

Description

@HareemSaad

Which packages are impacted by your issue?

@graphprotocol/graph-cli

Describe the issue

When initializing a subgraph, I need to provide two contracts that are both verified on Sepolia. I can add the first one without any issues. However, when adding the second one, after entering the address and providing the contract name, the ABI fetching process consistently fails. Instead of prompting for a retry or a local path, it simply exits.

Reproduction

N/A (private)

Steps to Reproduce the Bug or Issue

  1. Add First Contract
  2. Say yes to adding another contract
  3. Add the second contract's address
  4. Enter the second contract's name
  5. No prompt just exists

Expected behavior

I expected retry prompts or to add abi locally, in actuality it just exit.

Screenshots or Videos

Screenshot from 2024-01-14 07-28-32

Platform

  • OS: Linux 23
  • NodeJS: 21.4.0
  • The Graph CLI (graph-cli): 0.65.0

Subgraph Manifest

No response

Subgraph GraphQL Schema

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions