-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I've got a project initialized with:
algokit init --template tealscriptboxes.algo.ts:
import { Contract } from '@algorandfoundation/tealscript';
// eslint-disable-next-line no-unused-vars
class TestContract extends Contract {
items = BoxMap<bytes, bytes>();
notOkay(): void {
const item = this.items('test');
if (!item.exists) {
item.create(128);
}
}
allOkay(): void {
if (!this.items('test').exists) {
this.items('test').create(128);
}
}
}> tealscript boxes.algo.tsThe code produced for notOkay is (all commented out):
// /*
// notOkay(): void {
// const item = this.items('test');
// if (!item.exists) {
// item.create(128);
// }
// }
I'm guessing the syntax isn't supported but there's no information about it in the IDE (VS Code) / the tealscript cmd.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
TODO