Skip to content

Support arc4.StaticArray empty constructors #185

@tristanmenzel

Description

@tristanmenzel

Given a static array of a size and type

MyArray: typing.TypeAlias = StaticArray[Address, typing.Literal[2]]

There should be an empty constructor

my_value = MyArray()

that is the equivalent of initializing the array with N items, initialized via their empty constructor

MyArray() == MyArray(Address(), Address())

This should recurse for nested static arrays

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions