Skip to content

Generate getter functions for public state variables #52

@DaniPopes

Description

@DaniPopes

Describe the feature

type public x in contracts should also generate a function x(...) public view returns(...) function that returns the variable. This is more complicated for arrays and mappings.

This should be done during lowering from AST to HIR, by creating a new HIR function.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-semaArea: semantic analysisC-enhancementCategory: an issue proposing an enhancement or a PR with oneE-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.P-highHigh priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions