Skip to content

Commit 1558a7a

Browse files
committed
only handle approvalProgramPages() call
1 parent 67b7882 commit 1558a7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/compiler.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7259,7 +7259,11 @@ declare type AssetFreezeTxn = Required<AssetFreezeParams>;
72597259
this.processNode(e);
72607260
this.pushVoid(e, `itxn_field ${capitalizeFirstChar(key)}Pages`);
72617261
});
7262-
} else if (key === 'approvalProgram' && init?.isKind(ts.SyntaxKind.CallExpression)) {
7262+
} else if (
7263+
key === 'approvalProgram' &&
7264+
init?.getText().endsWith('.approvalProgramPages()') &&
7265+
init?.isKind(ts.SyntaxKind.CallExpression)
7266+
) {
72637267
this.processNode(init);
72647268
} else if (key === 'onCompletion') {
72657269
if (!p.isKind(ts.SyntaxKind.PropertyAssignment) || !init?.isKind(ts.SyntaxKind.PropertyAccessExpression)) {

0 commit comments

Comments
 (0)