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

Duplicate identifier Error from Generated file #1604

Open
kagi-opendoor222 opened this issue Mar 1, 2024 · 0 comments
Open

Duplicate identifier Error from Generated file #1604

kagi-opendoor222 opened this issue Mar 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kagi-opendoor222
Copy link

Which packages are impacted by your issue?

@graphprotocol/graph-cli

Describe the issue

I noticed a problem with the code generated from the ABI for a particular contract when doing a graph init and build.
If I follow the instructions, I get a Duplicate identifier Error in a file in the "generated" directory when I run "graph build".

Environment
Polygon POS

Contract
0xaaAAAaAa33D3520a2266CE508bc079FCFe82C8E3

https://polygonscan.com/address/0xaaAAAaAa33D3520a2266CE508bc079FCFe82C8E3

Reproduction

graph init

Steps to Reproduce the Bug or Issue

  1. run "graph init"
    settings:
    matic
    contract
    0xaaAAAaAa33D3520a2266CE508bc079FCFe82C8E3

  2. graph auth

  3. cd directory

  4. graph codegen && graph build

Doing so will result in a Duplicate identifier error

Expected behavior

Code must be generated so that there are no duplicate identifiers

Screenshots or Videos

スクリーンショット 2024-03-01 21 16 10

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • NodeJS: [e.g. 18.5.0]
  • @graphprotocol/* version(s): [e.g. 2.6.2]

Subgraph Manifest

No response

Subgraph GraphQL Schema

No response

Additional context

No response

@kagi-opendoor222 kagi-opendoor222 added the bug Something isn't working label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant