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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement named parameters in mapping types #4343

Closed
pcaversaccio opened this issue Jun 11, 2023 · 0 comments 路 Fixed by #4433
Closed

Implement named parameters in mapping types #4343

pcaversaccio opened this issue Jun 11, 2023 · 0 comments 路 Fixed by #4433

Comments

@pcaversaccio
Copy link
Contributor

馃 Motivation

Solidity version 0.8.18 introduced the possibility to use named parameters in mapping types. Since the minimum pragma version was bumped to Solidity version 0.8.19 via #4288, I think it would make sense to implement this new feature to increase the overall code readability.

馃摑 Details

OZ contracts make extensive use of mappings, and this could be definitely a benefit:

mapping(address owner => mapping(address spender => uint256 amount)) private _allowances;
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 a pull request may close this issue.

1 participant