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
Disallow mappings in memory and copying mappings #7739
Labels
Projects
Comments
2 tasks
There's a PR (#6282) already that partially implements this. |
chriseth
changed the title
Disallow mappings in memory, deleting and copying mappings
Disallow mappings in memory and copying mappings
Mar 25, 2020
Regarding "declare as calldata type" Currently, in develop, the following contract: contract test {
function f(mapping(uint => uint) calldata b) external {
}
} would produce:
Is this what you wanted? |
Yes |
Closed by #9146 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to #6444 and #6282
Due to the fact that mappings are silently skipped, we should disallow the following operations on any data that contains a mapping:
(delete part moved to #8535 )
all code generator parts that currently skip mapping should be changed to assertions
The text was updated successfully, but these errors were encountered: