Skip to content

Cannot parse ARC4 Struct that use the kw_only flag #24

@CiottiGiorgio

Description

@CiottiGiorgio

The unit testing framework errors out when parsing arc4.Struct that use the kw_only boolean argument.

Steps to replicate:

  • Render the current python SC template.
  • Create a new type in the hello_world contract:
class ExampleStruct(arc4.Struct, kw_only=False):
    a: arc4.UInt64
    b: arc4.String
  • algokit project run test

This fails for kw_only=True and kw_only=False.

#23 is the working PR to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions