Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: UintN TemplateVar support for defining the length of an ARC4 StaticArray #95

Open
ericsharma opened this issue Feb 4, 2025 · 0 comments

Comments

@ericsharma
Copy link

ericsharma commented Feb 4, 2025

Definition of ARC4 StaticArray

An ARC4 StaticArray is an array of a fixed size. The item type is specified by the first generic parameter and the size is specified by the second.

Request

I'm requesting that the Puya-TS implementation of StaticArray support the ability to specify the size of the array with TemplateVar<UintN<8>>. This is currently not possible in Tealscript and I think it would be great to have in Puya-TS.

References

Idea briefly discussed in this discord thread

@ericsharma ericsharma changed the title Feature Request: Uint64 TemplateVar support for defining the length of an ARC4 StaticArray Feature Request: UintN TemplateVar support for defining the length of an ARC4 StaticArray Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant