Skip to content

Commit 8a79d05

Browse files
authored
fix: builds for templates (#1540)
* fix: builds for templates * prettier:
1 parent b3444d2 commit 8a79d05

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/thin-buttons-swim.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': patch
3+
---
4+
5+
fix graph build for templates

packages/cli/src/compiler/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ export default class Compiler {
452452
const inputFile = path.relative(baseDir, absoluteMappingPath);
453453
this._validateMappingContent(absoluteMappingPath);
454454

455-
const eventHandlers = templateName.getIn(['mapping', 'eventHandlers']);
455+
const eventHandlers = template.getIn(['mapping', 'eventHandlers']);
456456
// TODO: improve the types
457457
for (const eventHandler of (eventHandlers as any).toJS()) {
458458
compilerDebug('Validating Template handler %s', eventHandler.handler);

0 commit comments

Comments
 (0)