-
Notifications
You must be signed in to change notification settings - Fork 228
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Which packages are impacted by your issue?
@graphprotocol/graph-ts
Describe the issue
There is a "Missing handlers in WASM" error is issued when no handler is found in the code for corresponding "handler" property in subgraph.yaml. That is expected behavior.
But the error is not triggered if missing handler is declared in "templates" section of subgraph.yaml.
Reproduction
https://github.com/ksvirsky/the-graph-missing-handler/blob/main/subgraph.yaml
Steps to Reproduce the Bug or Issue
- clone repo.
- yarn
- yarn codegen && yarn build
- The error "Missing handlers in WASM" should be triggered for line 28 in subgraph.yaml.
- Commend out this line, uncomment the line 27.
- Now the error should be shown for line 52 ('templates' section), but it isn't.
Expected behavior
The error should be triggered for both 'dataSources' and 'templates' sections.
Screenshots or Videos
No response
Platform
- OS: all
- NodeJS: any
- "@graphprotocol/graph-cli": "0.97.1",
"@graphprotocol/graph-ts": "0.38.1"
Subgraph Manifest
https://github.com/ksvirsky/the-graph-missing-handler/blob/main/subgraph.yaml
Subgraph GraphQL Schema
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working