We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3444d2 commit 8a79d05Copy full SHA for 8a79d05
.changeset/thin-buttons-swim.md
@@ -0,0 +1,5 @@
1
+---
2
+'@graphprotocol/graph-cli': patch
3
4
+
5
+fix graph build for templates
packages/cli/src/compiler/index.ts
@@ -452,7 +452,7 @@ export default class Compiler {
452
const inputFile = path.relative(baseDir, absoluteMappingPath);
453
this._validateMappingContent(absoluteMappingPath);
454
455
- const eventHandlers = templateName.getIn(['mapping', 'eventHandlers']);
+ const eventHandlers = template.getIn(['mapping', 'eventHandlers']);
456
// TODO: improve the types
457
for (const eventHandler of (eventHandlers as any).toJS()) {
458
compilerDebug('Validating Template handler %s', eventHandler.handler);
0 commit comments