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

graph add generates incomplete event types for some contracts #1839

Open
YaroShkvorets opened this issue Dec 16, 2024 · 0 comments
Open

graph add generates incomplete event types for some contracts #1839

YaroShkvorets opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@YaroShkvorets
Copy link
Collaborator

YaroShkvorets commented Dec 16, 2024

Which packages are impacted by your issue?

@graphprotocol/graph-cli

Describe the issue

graph add 0x514910771AF9Ca656af840dff83E8264EcF986CA completes without issues but fails to build.

Reproduction

N/A

Steps to Reproduce the Bug or Issue

  1. graph init, select mainnet, specify USDT contract: 0xdAC17F958D2ee523a2206206994597C13D831ec7
  2. graph add 0x514910771AF9Ca656af840dff83E8264EcF986CA
  3. yarn install && yarn build
ERROR TS2339: Property 'data' does not exist on type '~lib/@graphprotocol/graph-ts/common/collections/TypedMap<~lib/string/String,~lib/@graphprotocol/graph-ts/common/value/Value>'.

   entity.data = event.params.data

However, everything works as expected if you generate subgraph for this contract with graph init, so the issue appears to be with graph add

Expected behavior

Should add a contract to subgraph and events handlers with all fields

Screenshots or Videos

No response

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

@YaroShkvorets YaroShkvorets added the bug Something isn't working label Dec 16, 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