sol2uml icon indicating copy to clipboard operation
sol2uml copied to clipboard

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

Open naddison36 opened this issue 2 years ago • 4 comments

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/ https://github.com/ethereum/solidity/issues/11969

naddison36 avatar Feb 08 '23 08:02 naddison36

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 avatar Feb 23 '23 00:02 naddison36

any update on this?

rori4 avatar Nov 10 '23 14:11 rori4

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

naddison36 avatar Nov 11 '23 02:11 naddison36

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

rori4 avatar Nov 11 '23 12:11 rori4