Skip to content

Commit

Permalink
Merge pull request #72 from algorand-devrel/dev
Browse files Browse the repository at this point in the history
0.26.1 - Fix as expressions
  • Loading branch information
joe-p authored Jul 11, 2023
2 parents 54d1d41 + 2622f6a commit c275c53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@algorandfoundation/tealscript",
"version": "0.26.0",
"version": "0.26.1",
"description": "Enables Algorand smart contract development with native TypeScript syntax, tooling, and IDE support",
"homepage": "https://github.com/algorand-devrel/TEALScript",
"bugs": {
Expand Down
5 changes: 4 additions & 1 deletion src/lib/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2464,7 +2464,10 @@ export default class Compiler {
this.typeHint = this.getABIType(node.type.getText());
this.processNode(node.expression);

if (this.lastType === 'any') return;
if (this.lastType === 'any') {
this.lastType = node.type.getText();
return;
}

const type = this.getABIType(node.type.getText());
if ((type.match(/uint\d+$/) || type.match(/ufixed\d+x\d+$/)) && type !== this.lastType) {
Expand Down

0 comments on commit c275c53

Please sign in to comment.