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(syn-solidity): improve variable getters generation #260

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Sep 4, 2023

Motivation

Closes #253

Solution

Recurse into mappings in value positions, adding keys to the arguments list, and setting the last non-mapping value as the return value.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@DaniPopes DaniPopes merged commit 4c81e00 into main Sep 7, 2023
18 checks passed
@DaniPopes DaniPopes deleted the dani/better-getters branch September 7, 2023 21:37
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] Generate getters for public mapping variables
2 participants