You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Huh interesting. This (saving a reference to a storage property in a variable) definitely isn't supported yet but I would have thought that it would throw an error.
Short term I'll get it to throw an error message, long term I'll work on supporting this because I imagine it's not uncommon to want to do this.
The actual issue here is no feedback from the tealscript boxes.algo.ts call. I thought it has produced the teal file above (with the commented out code) but it didn't and it was just some old code.
The tealscript boxes.algo.ts boxes.teal still provides some error information:
@algorandfoundation\tealscript\node_modules\typescript\lib\typescript.js:29399
return node.kind === 208 /* SyntaxKind.PropertyAccessExpression */;
^
TypeError: Cannot read properties of undefined (reading 'kind')
TEALScript can not process CallExpression at .\contracts\boxes.algo.ts:7:16
.\contracts\boxes.algo.ts:8: this.items('test')
I've got a project initialized with:
boxes.algo.ts:
> tealscript boxes.algo.ts
The code produced for
notOkay
is (all commented out):I'm guessing the syntax isn't supported but there's no information about it in the IDE (VS Code) / the tealscript cmd.
The text was updated successfully, but these errors were encountered: