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

feat(sol-macro): expand getter functions for public state variables #218

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

DaniPopes
Copy link
Member

Motivation

Closes #125

Solution

Insert an ItemFunction for each state variable/constant that is either public or external.
This has to be added in the AST because we also handle function overloads etc before expansion.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@prestwich prestwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@DaniPopes DaniPopes merged commit 0ff43ed into main Aug 2, 2023
18 checks passed
@DaniPopes DaniPopes deleted the dani/sol-var-functions branch September 21, 2023 19:35
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

Successfully merging this pull request may close these issues.

[Feature] Getters for storage vars marked public or with no marked visibility
2 participants