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

Storage diagrams to handle User Defined Value Types when introduced in Solidity #139

Open
naddison36 opened this issue Feb 8, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@naddison36
Copy link
Owner

naddison36 commented Feb 8, 2023

sol2uml storage will incorrectly size aliases types to 20 bytes as it'll think it is referencing a contract. This is incorrect if types like uint64 are aliased.

https://docs.soliditylang.org/en/v0.8.18/types.html#user-defined-value-types
https://blog.soliditylang.org/2021/09/27/user-defined-value-types/
ethereum/solidity#11969

@naddison36 naddison36 changed the title Storage diagrams to handle User Defined Value Types introduced in Solidity v0.8.8 Storage diagrams to handle User Defined Value Types when introduced in Solidity Feb 8, 2023
@naddison36
Copy link
Owner Author

Solidity has now released user defined value types in 0.8.19 https://blog.soliditylang.org/2023/02/22/solidity-0.8.19-release-announcement/

@naddison36 naddison36 added the enhancement New feature or request label Feb 24, 2023
@rori4
Copy link

rori4 commented Nov 10, 2023

any update on this?

@naddison36
Copy link
Owner Author

No, but thanks for asking as I'll spend time on it if there's demand for it.

@rori4
Copy link

rori4 commented Nov 11, 2023

it would be great since that feature is used more and more nowadays. If you need some help with it let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@naddison36 @rori4 and others