graph-tooling icon indicating copy to clipboard operation
graph-tooling copied to clipboard

Duplicate identifier Error from Generated file

Open kagi-opendoor222 opened this issue 1 year ago • 0 comments

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 avatar Mar 01 '24 12:03 kagi-opendoor222